CHange str_count substr_count=chris

Chris Pollett [2013-11-22 18:Nov:nd]
CHange str_count substr_count=chris
Filename
models/phrase_model.php
diff --git a/models/phrase_model.php b/models/phrase_model.php
index 2cd831b20..8acf0ee15 100755
--- a/models/phrase_model.php
+++ b/models/phrase_model.php
@@ -1058,7 +1058,8 @@ class PhraseModel extends ParallelModel
         $time = time();
         if(count($word_structs) > 1 || (isset($word_structs[0]["KEYS"])
             && count($word_structs[0]["KEYS"]) > 1) ||
-            ($word_structs == array() && str_count(" ",$original_query) > 1)) {
+            ($word_structs == array() &&
+            substr_count($original_query, " ") > 1)) {
             $use_proximity = true;
         }
         if(!isset($filter['time'])) {
ViewGit