mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-07 08:05:25 +02:00
ok, but now, really group by. :)
git-svn-id: file:///svn/phpbb/trunk@4549 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
2094094b76
commit
508b94ee12
@ -43,7 +43,8 @@ function generate_smilies($mode, $forum_id)
|
||||
if ($mode == 'inline')
|
||||
{
|
||||
$sql = 'SELECT COUNT(*) as num_smilies
|
||||
FROM ' . SMILIES_TABLE;
|
||||
FROM ' . SMILIES_TABLE . '
|
||||
GROUP BY smile_url';
|
||||
$result = $db->sql_query_limit($sql, 1, 0, 3600);
|
||||
$row = $db->sql_fetchrow($result);
|
||||
$num_smilies = (int) $row['num_smilies'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user