Skip to content
Snippets Groups Projects
Commit 7802d571 authored by Florian Schaal's avatar Florian Schaal
Browse files

fixed sql-query

parent 0e14d736
No related branches found
No related tags found
1 merge request!175fixed sql-query
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment