diff --git a/src/Query/SQLInterface.php b/src/Query/SQLInterface.php index 65519db..5f17fc3 100644 --- a/src/Query/SQLInterface.php +++ b/src/Query/SQLInterface.php @@ -21,7 +21,7 @@ namespace Query; * @package Query * @subpackage Drivers */ -interface SQL_Interface { +interface SQLInterface { /** * Get database specific sql for limit clause diff --git a/src/common.php b/src/common.php index ae49a93..0870112 100644 --- a/src/common.php +++ b/src/common.php @@ -179,9 +179,9 @@ if ( ! function_exists('regex_in_array')) foreach($array as $item) { - if (is_scalar($item)) + if (is_scalar($item) && preg_match($pattern, $item)) { - if (preg_match($pattern, $item)) return TRUE; + return TRUE; } }