summaryrefslogtreecommitdiffstats
path: root/modules-available/roomplanner
diff options
context:
space:
mode:
authorSteffen Ritter2022-05-13 12:23:21 +0200
committerSteffen Ritter2022-05-13 12:23:21 +0200
commit8238bbcc8187d3d7735dc7796182834799bf7c29 (patch)
treee2b3ed3441af0f2630e6b42d1383505f3636fa11 /modules-available/roomplanner
parentUpdate translations (diff)
downloadslx-admin-8238bbcc8187d3d7735dc7796182834799bf7c29.tar.gz
slx-admin-8238bbcc8187d3d7735dc7796182834799bf7c29.tar.xz
slx-admin-8238bbcc8187d3d7735dc7796182834799bf7c29.zip
[roomplan] Fix undefined index notices
Diffstat (limited to 'modules-available/roomplanner')
-rw-r--r--modules-available/roomplanner/page.inc.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules-available/roomplanner/page.inc.php b/modules-available/roomplanner/page.inc.php
index a591014b..9f890518 100644
--- a/modules-available/roomplanner/page.inc.php
+++ b/modules-available/roomplanner/page.inc.php
@@ -93,14 +93,14 @@ class Page_Roomplanner extends Page
$config['dedicatedmgr'] = (isset($data['dedicatedmgr']) && $data['dedicatedmgr']);
}
if ($config !== false) {
- $managerIp = $config['managerip'];
+ $managerIp = $config['managerip'] ?? '';
$dediMgr = $config['dedicatedmgr'] ? 'checked' : '';
} else {
$dediMgr = $managerIp = '';
}
$furniture = $this->getFurniture($config);
$subnetMachines = $this->getPotentialMachines();
- $machinesOnPlan = $this->getMachinesOnPlan($config['tutoruuid']);
+ $machinesOnPlan = $this->getMachinesOnPlan($config['tutoruuid'] ?? '');
$roomConfig = array_merge($furniture, $machinesOnPlan);
$canEdit = User::hasPermission('edit', $this->locationid);
$params = [
@@ -380,7 +380,7 @@ class Page_Roomplanner extends Page
{
if ($config === false)
return array();
- $config = json_decode($config['roomplan'], true);
+ $config = json_decode($config['roomplan'] ?? '', true);
if (!is_array($config))
return array();
return $config;