summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules-available/locationinfo/page.inc.php2
1 files changed, 1 insertions, 1 deletions
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)) {