mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00: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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue