diff --git a/html/inc/prefs.inc b/html/inc/prefs.inc index faf8b164a5..fe6dce474c 100644 --- a/html/inc/prefs.inc +++ b/html/inc/prefs.inc @@ -306,7 +306,11 @@ function element_start_global($parser, $name, $attrs) { switch($name) { case "venue": - $venue_name = $attrs["name"]; + if (array_key_exists("name", $attrs)) { + $venue_name = $attrs["name"]; + } else { + $venue_name = "home"; + } $top_parse_result = $parse_result; $parse_result = default_prefs_global(); break;