From 6df8b7f3678ba242480a0c50b651b1653a0d2d6b Mon Sep 17 00:00:00 2001 From: kasimi Date: Sun, 20 Oct 2019 20:50:34 +0200 Subject: [ticket/16183] Generate SQL query from array PHPBB3-16183 --- phpBB/includes/functions_posting.php | 1 + 1 file changed, 1 insertion(+) (limited to 'phpBB/includes/functions_posting.php') diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 0fb4ef2c49..844481f1bd 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -74,6 +74,7 @@ function generate_smilies($mode, $forum_id) ]; extract($phpbb_dispatcher->trigger_event('core.generate_smilies_count_sql_before', compact($vars))); + $sql = $db->sql_build_query('SELECT', $sql_ary); $result = $db->sql_query($sql, 3600); $smiley_count = 0; -- cgit v1.2.1