From 95e54d1d300809cb8656c52d029f797ba5961a04 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 19 Sep 2014 22:08:04 +0200 Subject: Exclude current user in email notifications, pull-request #273) --- vendor/PicoDb/Table.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vendor') 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)', -- cgit v1.2.3