diff options
-rw-r--r-- | modules-available/roomplanner/baseconfig/getconfig.inc.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules-available/roomplanner/baseconfig/getconfig.inc.php b/modules-available/roomplanner/baseconfig/getconfig.inc.php index 76cd399d..8518f751 100644 --- a/modules-available/roomplanner/baseconfig/getconfig.inc.php +++ b/modules-available/roomplanner/baseconfig/getconfig.inc.php @@ -3,6 +3,10 @@ $configVars["SLX_PVS_CONFIG_URL"] = 'http://' . $_SERVER['SERVER_ADDR'] . $_SERVER['SCRIPT_NAME'] . '?do=roomplanner'; $res = Database::queryFirst('SELECT dedicatedmgr FROM location_roomplan WHERE managerip = :ip LIMIT 1', ['ip' => $ip]); -if ($res !== false && (int)$res['dedicatedmgr'] !== 0) { - $configVars["SLX_PVS_DEDICATED"] = 'yes'; +if ($res !== false) { + if ((int)$res['dedicatedmgr'] !== 0) { + $configVars["SLX_PVS_DEDICATED"] = 'yes'; + } else { + $configVars["SLX_PVS_HYBRID"] = 'yes'; + } }
\ No newline at end of file |