From 460ab097380d81bd531a21c2ec192941b2268e4f Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Mon, 8 Mar 2010 17:07:27 -0500 Subject: [PATCH] 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. --- content/lib/Tagger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']) . ')'; } -- 2.11.0