summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo
diff options
context:
space:
mode:
authorSimon Rettberg2018-04-25 12:46:02 +0200
committerSimon Rettberg2018-04-25 12:46:02 +0200
commitf73ec7023b497bb6c91918ffb5b5f29bd5e90ec9 (patch)
tree4c42065b291a8199cb33c3c9707b201be7f87761 /modules-available/locationinfo
parent[rebootcontrol] Try clients first that are known to be online (diff)
downloadslx-admin-f73ec7023b497bb6c91918ffb5b5f29bd5e90ec9.tar.gz
slx-admin-f73ec7023b497bb6c91918ffb5b5f29bd5e90ec9.tar.xz
slx-admin-f73ec7023b497bb6c91918ffb5b5f29bd5e90ec9.zip
[locationinfo] Activate runmode module before calling
Diffstat (limited to 'modules-available/locationinfo')
-rw-r--r--modules-available/locationinfo/page.inc.php4
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)