quick bug fix

This commit is contained in:
flash 2015-09-14 23:52:17 +02:00
parent 415a8d642e
commit 59c21289a1
2 changed files with 7 additions and 2 deletions

View file

@ -2736,6 +2736,11 @@
"type": "UPD", "type": "UPD",
"change": "Make indentation style PSR2 standard compliant.", "change": "Make indentation style PSR2 standard compliant.",
"user": "Flashwave" "user": "Flashwave"
},
{
"type": "FIX",
"change": "Fixed error on profile page relating to forum stats.",
"user": "Flashwave"
} }
] ]

View file

@ -339,14 +339,14 @@ class Forum
'posts', 'posts',
['poster_id' => [$uid, '=']] ['poster_id' => [$uid, '=']]
)[0], )[0],
'topics' => Database::count( 'topics' => count(Database::fetch(
'posts', 'posts',
true, true,
['poster_id' => [$uid, '=']], ['poster_id' => [$uid, '=']],
['post_time'], ['post_time'],
null, null,
['topic_id'] ['topic_id']
)[0], )),
]; ];
} }