diff options
author | Steffen Ritter | 2022-05-13 12:23:21 +0200 |
---|---|---|
committer | Steffen Ritter | 2022-05-13 12:23:21 +0200 |
commit | 8238bbcc8187d3d7735dc7796182834799bf7c29 (patch) | |
tree | e2b3ed3441af0f2630e6b42d1383505f3636fa11 /modules-available/roomplanner | |
parent | Update translations (diff) | |
download | slx-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.php | 6 |
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; |