|
From: Andreas F. <ba...@ph...> - 2009-08-21 10:47:18
|
Author: bantu
Date: Fri Aug 21 11:46:58 2009
New Revision: 10040
Log:
Use comparison instead of arithmetic.
Modified:
branches/phpBB-3_0_0/phpBB/includes/functions_display.php
Modified: branches/phpBB-3_0_0/phpBB/includes/functions_display.php
==============================================================================
*** branches/phpBB-3_0_0/phpBB/includes/functions_display.php (original)
--- branches/phpBB-3_0_0/phpBB/includes/functions_display.php Fri Aug 21 11:46:58 2009
***************
*** 168,174 ****
}
// Count the difference of real to public topics, so we can display an information to moderators
! $row['forum_id_unapproved_topics'] = ($auth->acl_get('m_approve', $forum_id) && ($row['forum_topics_real'] - $row['forum_topics'])) ? $forum_id : 0;
$row['forum_topics'] = ($auth->acl_get('m_approve', $forum_id)) ? $row['forum_topics_real'] : $row['forum_topics'];
// Display active topics from this forum?
--- 168,174 ----
}
// Count the difference of real to public topics, so we can display an information to moderators
! $row['forum_id_unapproved_topics'] = ($auth->acl_get('m_approve', $forum_id) && ($row['forum_topics_real'] != $row['forum_topics'])) ? $forum_id : 0;
$row['forum_topics'] = ($auth->acl_get('m_approve', $forum_id)) ? $row['forum_topics_real'] : $row['forum_topics'];
// Display active topics from this forum?
|