diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-09-19 22:08:04 +0200 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-09-19 22:08:04 +0200 |
commit | 95e54d1d300809cb8656c52d029f797ba5961a04 (patch) | |
tree | 44d31d492e26efb3308b70ac173baecf45b811a7 /vendor | |
parent | 9ffa63747ae5a5ecfe8ac3e6a3276ade80e6980b (diff) |
Exclude current user in email notifications, pull-request #273)
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)', |