web: fix PHP warnings

This commit is contained in:
David Anderson 2013-05-04 10:15:04 -07:00
parent 69ab6f570c
commit c93b12dd60
2 changed files with 2 additions and 0 deletions

View File

@ -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, "<default_disk_max_used_gb>");
$dp->disk_max_used_pct = parse_config($config, "<default_disk_max_used_pct>");
$dp->disk_min_free_gb = parse_config($config, "<default_disk_min_free_gb>");

View File

@ -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, "<color_scheme>");
}