Commit 3299ad41 authored by Marius Cramer's avatar Marius Cramer

Merge branch 'master' into 'master'

fixed sql-query

See merge request !175
parents fa4d8960 7802d571
......@@ -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