Fixed: warnings and added type casting

This commit is contained in:
vishalsingh.qlo325
2025-06-16 18:02:58 +05:30
parent c8ab097af4
commit b88e2c7bca
2 changed files with 6 additions and 3 deletions

View File

@@ -1788,6 +1788,9 @@ class ToolsCore
public static function strpos($str, $find, $offset = 0, $encoding = 'UTF-8')
{
if (is_array($str) || is_null($str)) {
return false;
}
if (function_exists('mb_strpos')) {
return mb_strpos($str, $find, $offset, $encoding);
}