From: scyrma Date: Wed, 16 Apr 2008 03:37:45 +0000 (+0000) Subject: MDL-3381 - changing call to ctype_space to remove dependency on ctype (merge from... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8e1bd282388a721264979d1ab3759665f63e98bd;p=moodle.git MDL-3381 - changing call to ctype_space to remove dependency on ctype (merge from 1.9) --- diff --git a/lib/searchlib.php b/lib/searchlib.php index d35daa633b..4fee4b4824 100644 --- a/lib/searchlib.php +++ b/lib/searchlib.php @@ -293,7 +293,7 @@ class search_parser { // State entered when we've seen an ordinary, non-quoted word. Potentially // emits a token. function plainstring($content){ - if (ctype_space($content)) { // State exit + if (trim($content) === '') { // State exit return true; } // Add the string to the parsed token array.