mirror of
https://github.com/hnhx/librex.git
synced 2025-04-29 14:09:27 -04:00
changed str_contains to strpos
This commit is contained in:
parent
d9abf9271c
commit
3faff7af56
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue