mirror of https://github.com/BOINC/boinc.git
user web: don't gag if prefs have <venue> tag with no name attribute
This commit is contained in:
parent
99c28dd7cf
commit
2b7c11d369
|
@ -306,7 +306,11 @@ function element_start_global($parser, $name, $attrs) {
|
||||||
|
|
||||||
switch($name) {
|
switch($name) {
|
||||||
case "venue":
|
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;
|
$top_parse_result = $parse_result;
|
||||||
$parse_result = default_prefs_global();
|
$parse_result = default_prefs_global();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue