Commit 7802d571 authored by Florian Schaal's avatar Florian Schaal

fixed sql-query

parent 0e14d736
......@@ -182,7 +182,7 @@ class page_action extends tform_actions {
//* firewall
$array_out = array();
foreach($server_data as $db_table => $data) {
$sql = @(isset($data['server_id']))?"SELECT * FROM ?? WHERE server_id = ":"SELECT * FROM ??";
$sql = @(isset($data['server_id']))?"SELECT * FROM ?? WHERE server_id = ?":"SELECT * FROM ??";
$records = $app->db->queryAllRecords($sql, $db_table, $server_id);
if (!empty($records)) array_push($array_out, $db_table);
}
......
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