Skip to content

Commit 5fb3aba

Browse files
author
Florian Schaal
committed
Apply 1 suggestion(s) to 1 file(s)
1 parent 2bb522c commit 5fb3aba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/nginx_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function directive_snippets($event_name, $data) {
103103
$affected_snippets = $app->db->queryAllRecords('SELECT directive_snippets_id FROM directive_snippets WHERE required_php_snippets RLIKE(?) AND type = ?', $rlike, 'nginx');
104104
if(is_array($affected_snippets) && !empty($affected_snippets)) {
105105
foreach($affected_snippets as $snippet) $sql_in[] = $snippet['directive_snippets_id'];
106-
$affected_sites = $app->db->queryAllRecords('SELECT domain_id FROM web_domain WHERE server_id = ? AND directive_snippets_id IN('.implode(',', $sql_in).')', $conf['server_id']);
106+
$affected_sites = $app->db->queryAllRecords('SELECT domain_id FROM web_domain WHERE server_id = ? AND directive_snippets_id IN ?', $conf['server_id'], $sql_in);
107107
}
108108
}
109109
if($snippet['type'] == 'nginx') $affected_sites = $app->db->queryAllRecords('SELECT domain_id FROM web_domain WHERE server_id = ? AND directive_snippets_id = ?', $conf['server_id'], $snippet['directive_snippets_id']);

0 commit comments

Comments
 (0)