Change for with count.

This commit is contained in:
Vasily Komrakov 2017-05-07 20:59:35 +03:00
commit 56540c893a
No known key found for this signature in database
GPG key ID: 558236680C20A69A
16 changed files with 73 additions and 73 deletions

View file

@ -74,7 +74,7 @@ if ($watch_count > 0) {
$watch = DB()->sql_fetchrowset($result);
if ($watch) {
for ($i = 0; $i < count($watch); $i++) {
for ($i = 0, $iMax = count($watch); $i < $iMax; $i++) {
$is_unread = is_unread($watch[$i]['topic_last_post_time'], $watch[$i]['topic_id'], $watch[$i]['forum_id']);
$template->assign_block_vars('watch', array(