Skip to content

Commit 7802d57

Browse files
author
Florian Schaal
committed
fixed sql-query
1 parent 0e14d73 commit 7802d57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/tools/resync.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ private function server_has_data($type, $server) {
182182
//* firewall
183183
$array_out = array();
184184
foreach($server_data as $db_table => $data) {
185-
$sql = @(isset($data['server_id']))?"SELECT * FROM ?? WHERE server_id = ":"SELECT * FROM ??";
185+
$sql = @(isset($data['server_id']))?"SELECT * FROM ?? WHERE server_id = ?":"SELECT * FROM ??";
186186
$records = $app->db->queryAllRecords($sql, $db_table, $server_id);
187187
if (!empty($records)) array_push($array_out, $db_table);
188188
}

0 commit comments

Comments
 (0)