diff options
author | Andreas Fischer <bantu@phpbb.com> | 2009-08-21 10:46:58 +0000 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2009-08-21 10:46:58 +0000 |
commit | a3c00e88d919a7b352635d869d068e163288b143 (patch) | |
tree | c94f8b0cac9b555c7d74d73d5834a2581a297654 | |
parent | 5d2e4e88ab3266b44101714a101d337e0053361e (diff) | |
download | forums-a3c00e88d919a7b352635d869d068e163288b143.tar forums-a3c00e88d919a7b352635d869d068e163288b143.tar.gz forums-a3c00e88d919a7b352635d869d068e163288b143.tar.bz2 forums-a3c00e88d919a7b352635d869d068e163288b143.tar.xz forums-a3c00e88d919a7b352635d869d068e163288b143.zip |
Use comparison instead of arithmetic.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10040 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/includes/functions_display.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php index 2f385ff5ba..328c4b1274 100644 --- a/phpBB/includes/functions_display.php +++ b/phpBB/includes/functions_display.php @@ -168,7 +168,7 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod } // 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_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? |