aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_template.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions_template.php')
-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
{