aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorChris Smith <toonarmy@phpbb.com>2008-11-22 18:03:04 +0000
committerChris Smith <toonarmy@phpbb.com>2008-11-22 18:03:04 +0000
commit47b4b8346813312f99509d3f9d877c9cbf81b88b (patch)
tree4917a0d30e4d7a745c5232fb9cf05c26355d011b /phpBB/includes
parentc8e3035a4b5dfa6ad5535da4a2a51eea1aafa039 (diff)
downloadforums-47b4b8346813312f99509d3f9d877c9cbf81b88b.tar
forums-47b4b8346813312f99509d3f9d877c9cbf81b88b.tar.gz
forums-47b4b8346813312f99509d3f9d877c9cbf81b88b.tar.bz2
forums-47b4b8346813312f99509d3f9d877c9cbf81b88b.tar.xz
forums-47b4b8346813312f99509d3f9d877c9cbf81b88b.zip
Merge in r9065
git-svn-id: file:///svn/phpbb/trunk@9074 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_admin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index 2d44ef0271..ec018a4cf1 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -2387,7 +2387,7 @@ function view_log($mode, &$log, &$log_count, $limit = 0, $offset = 0, $forum_id
{
// Check if there are more occurrences of % than arguments, if there are we fill out the arguments array
// It doesn't matter if we add more arguments than placeholders
- if (substr_count($log[$i]['action'], '%') - sizeof($log_data_ary))
+ if ((substr_count($log[$i]['action'], '%') - sizeof($log_data_ary)) > 0)
{
$log_data_ary = array_merge($log_data_ary, array_fill(0, substr_count($log[$i]['action'], '%') - sizeof($log_data_ary), ''));
}