From 8e1bd282388a721264979d1ab3759665f63e98bd Mon Sep 17 00:00:00 2001 From: scyrma Date: Wed, 16 Apr 2008 03:37:45 +0000 Subject: [PATCH] MDL-3381 - changing call to ctype_space to remove dependency on ctype (merge from 1.9) --- lib/searchlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.39.5