aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorChris Smith <toonarmy@phpbb.com>2008-11-24 11:38:22 +0000
committerChris Smith <toonarmy@phpbb.com>2008-11-24 11:38:22 +0000
commit528bd80651b3d11d2fd8249d2f326af59161f387 (patch)
tree8d997938fcad73610de1555a5dc7f2f306e60b69 /phpBB/includes
parent0955e2e539afd9581e8795883efcee76d6021595 (diff)
downloadforums-528bd80651b3d11d2fd8249d2f326af59161f387.tar
forums-528bd80651b3d11d2fd8249d2f326af59161f387.tar.gz
forums-528bd80651b3d11d2fd8249d2f326af59161f387.tar.bz2
forums-528bd80651b3d11d2fd8249d2f326af59161f387.tar.xz
forums-528bd80651b3d11d2fd8249d2f326af59161f387.zip
Fix a bug we inherited from Smarty a long time ago
git-svn-id: file:///svn/phpbb/trunk@9109 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_template.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_template.php b/phpBB/includes/functions_template.php
index 920b235cb3..8672c00d50 100644
--- a/phpBB/includes/functions_template.php
+++ b/phpBB/includes/functions_template.php
@@ -559,7 +559,7 @@ class template_filter extends php_user_filter
{
$expr_end++;
$expr_arg = $tokens[$expr_end++];
- $expr = "!(($is_arg / $expr_arg) % $expr_arg)";
+ $expr = "!(($is_arg / $expr_arg) & 1)";
}
else
{
@@ -572,7 +572,7 @@ class template_filter extends php_user_filter
{
$expr_end++;
$expr_arg = $tokens[$expr_end++];
- $expr = "(($is_arg / $expr_arg) % $expr_arg)";
+ $expr = "(($is_arg / $expr_arg) & 1)";
}
else
{