Text/SearchParser.php
authorAlan Knowles <alan@akbkhome.com>
Thu, 26 Apr 2012 02:37:51 +0000 (10:37 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 26 Apr 2012 02:37:51 +0000 (10:37 +0800)
Text/SearchParser.php

index 84712d6..17ba796 100644 (file)
@@ -186,8 +186,16 @@ class Text_SearchParser_Tokenizer {
         }
             
     }
-    function addStr($s, $q=false) { //$q == quoted..
-        $s = $q ? $s : trim($s);
+    /**
+     * add a string to the tokens list..
+     * @param string $str The string to add
+     * @param boolean $q  is the string quoted.
+     */
+
+    function addStr($s, $q=false)
+    { 
+        //$s = $q ? $s : trim($s);
+        $s = trim($s);
         if (!strlen($s)) {
             return;
         }