diff options
Diffstat (limited to 'modules-available/locationinfo')
-rw-r--r-- | modules-available/locationinfo/page.inc.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules-available/locationinfo/page.inc.php b/modules-available/locationinfo/page.inc.php index 93d36de6..2c24fbce 100644 --- a/modules-available/locationinfo/page.inc.php +++ b/modules-available/locationinfo/page.inc.php @@ -113,7 +113,9 @@ class Page_LocationInfo extends Page if ($res !== 1) { Message::addWarning('invalid-panel-id', $id); } - RunMode::deleteMode(Page::getModule(), $id); + if (Module::isAvailable('runmode')) { + RunMode::deleteMode(Page::getModule(), $id); + } } private function getTime($str) |