CHange str_count substr_count=chris
CHange str_count substr_count=chris
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'])) {