Commit 864a3435 authored by Marius Burkard's avatar Marius Burkard

- fixed problem in remoting (not able to get version info without providing...

- fixed problem in remoting (not able to get version info without providing server_id argument), fixes #4801
parent c058e40f
......@@ -244,7 +244,7 @@ class remoting_server extends remoting {
return false;
}
if (!empty($session_id)) {
if($server_id === 0) $ispc_app_version = array('ispc_app_version' => ISPC_APP_VERSION);
if($server_id == 0) $ispc_app_version = array('ispc_app_version' => ISPC_APP_VERSION);
else {
$rec = $app->db->queryOneRecord("SELECT data FROM monitor_data WHERE type = 'ispc_info' AND server_id = ?", $server_id);
$rec = unserialize($rec['data']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment