diff options
Diffstat (limited to 'vendor')
-rw-r--r-- | vendor/PicoDb/Table.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/PicoDb/Table.php b/vendor/PicoDb/Table.php index cc637434..f13b4e11 100644 --- a/vendor/PicoDb/Table.php +++ b/vendor/PicoDb/Table.php @@ -350,7 +350,7 @@ class Table switch (strtolower($name)) { case 'in': - if (isset($arguments[1]) && is_array($arguments[1])) { + if (isset($arguments[1]) && is_array($arguments[1]) && ! empty($arguments[1])) { $sql = sprintf( '%s IN (%s)', @@ -361,7 +361,7 @@ class Table break; case 'notin': - if (isset($arguments[1]) && is_array($arguments[1])) { + if (isset($arguments[1]) && is_array($arguments[1]) && ! empty($arguments[1])) { $sql = sprintf( '%s NOT IN (%s)', |