From 528bd80651b3d11d2fd8249d2f326af59161f387 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Mon, 24 Nov 2008 11:38:22 +0000 Subject: [PATCH] Fix a bug we inherited from Smarty a long time ago git-svn-id: file:///svn/phpbb/trunk@9109 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_template.php | 4 ++-- 1 file 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 {