user web: don't gag if prefs have <venue> tag with no name attribute

This commit is contained in:
David Anderson 2016-04-08 18:29:35 -07:00
parent 99c28dd7cf
commit 2b7c11d369
1 changed files with 5 additions and 1 deletions

View File

@ -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;