From: Michael J. Rubinsky Date: Mon, 8 Mar 2010 22:07:27 +0000 (-0500) Subject: Use an array_key_exists() call here instead of empty() to support searching for empty... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=460ab097380d81bd531a21c2ec192941b2268e4f;p=horde.git Use an array_key_exists() call here instead of empty() to support searching for empty userIds System shares will have null owners so tags on system shares will have an empty tag user. --- diff --git a/content/lib/Tagger.php b/content/lib/Tagger.php index cb5fc07b4..e4c3f07a9 100644 --- a/content/lib/Tagger.php +++ b/content/lib/Tagger.php @@ -393,7 +393,7 @@ class Content_Tagger $sql .= ' AND objects.type_id IN (' . implode(', ', $args['typeId']) . ')'; } - if (!empty($args['userId'])) { + if (array_key_exists('userId', $args)) { $args['userId'] = $this->_userManager->ensureUsers($args['userId']); $sql .= ' AND tagged.user_id IN ( ' . implode(', ', $args['userId']) . ')'; }