Browse Source

changed str_contains to strpos

hnhx 3 years ago
parent
commit
3faff7af56
1 changed files with 2 additions and 2 deletions
  1. 2 2
      fetch.php

+ 2 - 2
fetch.php

@@ -11,11 +11,11 @@
             $query_lower = strtolower($query);
 
             // Check for currency convesion
-            if (str_contains($query_lower, "to"))
+            if (strpos($query_lower, "to"))
                 convert_currency($query);
             
             // Check for definition 
-            else if (str_contains($query_lower, "mean"))
+            else if (strpos($query_lower, "mean"))
                 define_word($query);
         }