Exclude current user in email notifications, pull-request #273)

This commit is contained in:
Frédéric Guillot
2014-09-19 22:08:04 +02:00
parent 9ffa63747a
commit 95e54d1d30
5 changed files with 95 additions and 7 deletions

View File

@@ -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)',