From baf8d571e3fe64a4dc39717f187abfc2bd0fb637 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Wed, 15 Oct 2008 01:47:37 +0000 Subject: [PATCH] Mini bug fix for UNDEFINE git-svn-id: file:///svn/phpbb/trunk@9016 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/functions_template.php b/phpBB/includes/functions_template.php index 0cdd5d21a3..cf85927028 100644 --- a/phpBB/includes/functions_template.php +++ b/phpBB/includes/functions_template.php @@ -463,7 +463,7 @@ class template_filter extends php_user_filter private function compile_tag_define($tag_args, $op) { $match = array(); - preg_match('#^((?:[a-z0-9\-_]+\.)+)?\$(?=[A-Z])([A-Z0-9_\-]*) = (.*?)$#', $tag_args, $match); + preg_match('#^((?:[a-z0-9\-_]+\.)+)?\$(?=[A-Z])([A-Z0-9_\-]*)(?: = (.*?))?$#', $tag_args, $match); if (empty($match[2]) || (!isset($match[3]) && $op)) {