mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Change for with count.
This commit is contained in:
parent
32ca1d66fc
commit
56540c893a
16 changed files with 73 additions and 73 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue