diff options
author | Simon Rettberg | 2016-12-06 19:19:28 +0100 |
---|---|---|
committer | Simon Rettberg | 2016-12-06 19:19:28 +0100 |
commit | 99ae0bdb3b663b2a3c222b7a6413c742f0151dd3 (patch) | |
tree | 720963f6be0ac4a32666e322f743d9ffa16aa2bb /modules-available/roomplanner/inc/pvsgenerator.inc.php | |
parent | [roomplanner] Update locationid -> fixedlocationid (diff) | |
download | slx-admin-99ae0bdb3b663b2a3c222b7a6413c742f0151dd3.tar.gz slx-admin-99ae0bdb3b663b2a3c222b7a6413c742f0151dd3.tar.xz slx-admin-99ae0bdb3b663b2a3c222b7a6413c742f0151dd3.zip |
[roomplanner] Show if PC is already placed in another room
Diffstat (limited to 'modules-available/roomplanner/inc/pvsgenerator.inc.php')
-rw-r--r-- | modules-available/roomplanner/inc/pvsgenerator.inc.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules-available/roomplanner/inc/pvsgenerator.inc.php b/modules-available/roomplanner/inc/pvsgenerator.inc.php index af090fc3..c00d5439 100644 --- a/modules-available/roomplanner/inc/pvsgenerator.inc.php +++ b/modules-available/roomplanner/inc/pvsgenerator.inc.php @@ -153,6 +153,9 @@ class PvsGenerator while ($row = $ret->fetch(PDO::FETCH_ASSOC)) { $position = json_decode($row['position'], true); + if ($position === false || !isset($position['gridRow']) || !isset($position['gridCol'])) + continue; // TODO: Remove entry/set to NULL? + $machine = array(); $machine['clientip'] = $row['clientip']; $machine['gridRow'] = $position['gridRow']; |