From 51efc597057f64813d826b1bac58efa393ea2cd6 Mon Sep 17 00:00:00 2001 From: Steffen Ritter Date: Tue, 9 May 2017 15:44:41 +0200 Subject: [locationinfo] Fix undefined variable 'openingtimes' --- modules-available/locationinfo/page.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules-available/locationinfo/page.inc.php') diff --git a/modules-available/locationinfo/page.inc.php b/modules-available/locationinfo/page.inc.php index d43380c7..610ef0d0 100644 --- a/modules-available/locationinfo/page.inc.php +++ b/modules-available/locationinfo/page.inc.php @@ -496,7 +496,7 @@ class Page_LocationInfo extends Page if ($row !== false) { $openingtimes = json_decode($row['openingtime'], true); } - if (!is_array($openingtimes)) { + if (!isset($openingtimes) || !is_array($openingtimes)) { $openingtimes = array(); } if ($this->isEasyMode($openingtimes)) { -- cgit v1.2.3-55-g7522