]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-3381 - changing call to ctype_space to remove dependency on ctype (merge from...
authorscyrma <scyrma>
Wed, 16 Apr 2008 03:37:45 +0000 (03:37 +0000)
committerscyrma <scyrma>
Wed, 16 Apr 2008 03:37:45 +0000 (03:37 +0000)
lib/searchlib.php

index d35daa633bbde642a1b9c48c6c8e747dbd52538b..4fee4b482419686f02f6775b91181c342c2f23e7 100644 (file)
@@ -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.