From 2b7c11d369c8a18ee491933f095653422bce0559 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 8 Apr 2016 18:29:35 -0700 Subject: [PATCH] user web: don't gag if prefs have tag with no name attribute --- html/inc/prefs.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;