From c93b12dd603f95ae6ac6d2ac78de78a3fa44aa08 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 4 May 2013 10:15:04 -0700 Subject: [PATCH] web: fix PHP warnings --- html/inc/prefs.inc | 1 + html/project.sample/project_specific_prefs.inc | 1 + 2 files changed, 2 insertions(+) diff --git a/html/inc/prefs.inc b/html/inc/prefs.inc index 0a8cc165e7..09701914f3 100644 --- a/html/inc/prefs.inc +++ b/html/inc/prefs.inc @@ -417,6 +417,7 @@ global $venue_name; function get_disk_space_config() { global $config; $config = get_config(); + $dp = new StdClass; $dp->disk_max_used_gb = parse_config($config, ""); $dp->disk_max_used_pct = parse_config($config, ""); $dp->disk_min_free_gb = parse_config($config, ""); diff --git a/html/project.sample/project_specific_prefs.inc b/html/project.sample/project_specific_prefs.inc index 4431feb53c..4d358893a9 100644 --- a/html/project.sample/project_specific_prefs.inc +++ b/html/project.sample/project_specific_prefs.inc @@ -209,6 +209,7 @@ function project_specific_prefs_show($prefs, $columns=false) { } function project_specific_prefs_parse($prefs_xml) { + $prefs = new StdClass; if (COLOR_PREFS) { $prefs->color_scheme = parse_element($prefs_xml, ""); }