changed str_contains to strpos

This commit is contained in:
hnhx 2022-02-18 19:08:40 +01:00
parent d9abf9271c
commit 3faff7af56

View file

@ -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);
}