diff options
author | Chris Smith <toonarmy@phpbb.com> | 2008-10-15 01:47:37 +0000 |
---|---|---|
committer | Chris Smith <toonarmy@phpbb.com> | 2008-10-15 01:47:37 +0000 |
commit | baf8d571e3fe64a4dc39717f187abfc2bd0fb637 (patch) | |
tree | d90dc8ea25231e9a96a9df3207ca9e0b78bd3c39 /phpBB/includes | |
parent | 5ce6035aad3c85b6dc30d523903d8b7c377f7a5a (diff) | |
download | forums-baf8d571e3fe64a4dc39717f187abfc2bd0fb637.tar forums-baf8d571e3fe64a4dc39717f187abfc2bd0fb637.tar.gz forums-baf8d571e3fe64a4dc39717f187abfc2bd0fb637.tar.bz2 forums-baf8d571e3fe64a4dc39717f187abfc2bd0fb637.tar.xz forums-baf8d571e3fe64a4dc39717f187abfc2bd0fb637.zip |
Mini bug fix for UNDEFINE
git-svn-id: file:///svn/phpbb/trunk@9016 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/functions_template.php | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |