diff options
author | Simon Rettberg | 2017-12-01 18:58:16 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-12-01 18:58:16 +0100 |
commit | 4e39862628cf5b59f5c8d91f11070edd90b4a818 (patch) | |
tree | 3950c3900f3b48660c806977631c81f07d793101 /modules-available/roomplanner/inc/pvsgenerator.inc.php | |
parent | [roomplanner] Sort already placed machines to the bottom (diff) | |
download | slx-admin-4e39862628cf5b59f5c8d91f11070edd90b4a818.tar.gz slx-admin-4e39862628cf5b59f5c8d91f11070edd90b4a818.tar.xz slx-admin-4e39862628cf5b59f5c8d91f11070edd90b4a818.zip |
Fix several PHP notices about undefined indexes, variables, not-arrays
Diffstat (limited to 'modules-available/roomplanner/inc/pvsgenerator.inc.php')
-rw-r--r-- | modules-available/roomplanner/inc/pvsgenerator.inc.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules-available/roomplanner/inc/pvsgenerator.inc.php b/modules-available/roomplanner/inc/pvsgenerator.inc.php index 6df7c10e..292441d4 100644 --- a/modules-available/roomplanner/inc/pvsgenerator.inc.php +++ b/modules-available/roomplanner/inc/pvsgenerator.inc.php @@ -59,7 +59,7 @@ class PvsGenerator if (is_null($room['notnull']) || isset($room['skip'])) // Not leaf continue; if (Module::isAvailable('runmode')) { - $pc = RunMode::getForMode('roomplanner', $room['locationid']); + $pc = RunMode::getForMode('roomplanner', $room['locationid'], true); if (!empty($pc)) { $pc = array_pop($pc); $room['managerip'] = $pc['clientip']; @@ -219,7 +219,6 @@ class PvsGenerator if (!is_array($data)) { $data = array(); } - ConfigHolder::add("SLX_PVS_CONFIG_URL", 'http://' . $_SERVER['SERVER_ADDR'] . $_SERVER['SCRIPT_NAME'] . '?do=roomplanner'); if (isset($data['dedicatedmgr']) && $data['dedicatedmgr']) { ConfigHolder::add("SLX_ADDONS", false, 100000); |