From b576d6af0a9c0c78f379ca09069648d87364e1a0 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Thu, 5 May 2005 16:55:05 +0000 Subject: - some cross-db related changes - putting active bots array into cache git-svn-id: file:///svn/phpbb/trunk@5140 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_admin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'phpBB/includes/functions_admin.php') diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index ee97ffdc76..989d34a287 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -1492,9 +1492,9 @@ function remove_comments(&$output) $linecount = sizeof($lines); $in_comment = false; - for($i = 0; $i < $linecount; $i++) + for ($i = 0; $i < $linecount; $i++) { - if (preg_match('#^\/\*#', preg_quote($lines[$i]))) + if (trim($lines[$i]) == '/*') { $in_comment = true; } @@ -1504,7 +1504,7 @@ function remove_comments(&$output) $output .= $lines[$i] . "\n"; } - if (preg_match('#\*\/$#', preg_quote($lines[$i]))) + if (trim($lines[$i]) == '*/') { $in_comment = false; } -- cgit v1.2.1