diff options
author | Christian Hofmaier | 2019-01-08 14:50:50 +0100 |
---|---|---|
committer | Christian Hofmaier | 2019-01-08 14:50:50 +0100 |
commit | ccd6ea5a851c5e3f46c10b06b32f852c36ec4dd1 (patch) | |
tree | c0b32df25afabb85d2516adb8a484bcedc6cc5d0 /modules-available/locationinfo/inc | |
parent | [locationinfo] make colors consistent for summary and default panel (diff) | |
download | slx-admin-ccd6ea5a851c5e3f46c10b06b32f852c36ec4dd1.tar.gz slx-admin-ccd6ea5a851c5e3f46c10b06b32f852c36ec4dd1.tar.xz slx-admin-ccd6ea5a851c5e3f46c10b06b32f852c36ec4dd1.zip |
[locationinfo] set roomplanner default on false for existing panels
- if panel is already existing without roomplanner value in database
Diffstat (limited to 'modules-available/locationinfo/inc')
-rw-r--r-- | modules-available/locationinfo/inc/infopanel.inc.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules-available/locationinfo/inc/infopanel.inc.php b/modules-available/locationinfo/inc/infopanel.inc.php index 918030f0..fdc253f0 100644 --- a/modules-available/locationinfo/inc/infopanel.inc.php +++ b/modules-available/locationinfo/inc/infopanel.inc.php @@ -37,6 +37,9 @@ class InfoPanel $overrides = $json['overrides']; } unset($json['overrides']); + if (!isset($json['roomplanner'])) { + $config['roomplanner'] = false; + } $config = $json + $config; } } |