Skip to content

Commit 864a343

Browse files
author
Marius Burkard
committed
- fixed problem in remoting (not able to get version info without providing server_id argument), fixes #4801
1 parent c058e40 commit 864a343

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/lib/classes/remote.d/server.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public function server_get_app_version($session_id, $server_id = 0)
244244
return false;
245245
}
246246
if (!empty($session_id)) {
247-
if($server_id === 0) $ispc_app_version = array('ispc_app_version' => ISPC_APP_VERSION);
247+
if($server_id == 0) $ispc_app_version = array('ispc_app_version' => ISPC_APP_VERSION);
248248
else {
249249
$rec = $app->db->queryOneRecord("SELECT data FROM monitor_data WHERE type = 'ispc_info' AND server_id = ?", $server_id);
250250
$rec = unserialize($rec['data']);

0 commit comments

Comments
 (0)