1
0
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:
Meik Sievertsen 2003-10-10 15:59:45 +00:00
parent 2094094b76
commit 508b94ee12

View File

@ -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'];