Commit 929c3c07 authored by Marius Burkard's avatar Marius Burkard

- fixed return value of remoting functions server_get_serverid_by_name

and server_get_functions
parent 8f317261
......@@ -207,7 +207,7 @@ class remoting_server extends remoting {
}
if (!empty($session_id) && !empty($server_name)) {
$sql = "SELECT server_id FROM server WHERE server_name = ? LIMIT 1";
$all = $app->db->queryAllRecords($sql, $server_name);
$all = $app->db->queryOneRecord($sql, $server_name);
return $all;
} else {
return false;
......@@ -229,7 +229,7 @@ class remoting_server extends remoting {
}
if (!empty($session_id) && !empty($server_id)) {
$sql = "SELECT mail_server, web_server, dns_server, file_server, db_server, vserver_server, proxy_server, firewall_server FROM server WHERE server_id = ? LIMIT 1 ";
$all = $app->db->queryAllRecords($sql, $server_id);
$all = $app->db->queryOneRecord($sql, $server_id);
return $all;
} else {
return false;
......
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