From e501e50f081627b6430d47a28a510c6423c244e7 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 26 Dec 2015 08:37:17 -0500 Subject: [PATCH] Fix incorrect error condition Signed-off-by: Marc Delisle --- libraries/SavedSearches.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/SavedSearches.php b/libraries/SavedSearches.php index 9d2b30bbdc..224a6f0793 100644 --- a/libraries/SavedSearches.php +++ b/libraries/SavedSearches.php @@ -407,14 +407,14 @@ class SavedSearches * * @param string[] $wheres List of filters * - * @return array|bool List of saved search or false on failure + * @return array List of saved search or empty array on failure */ public function getList(array $wheres = array()) { if (null == $this->getUsername() || null == $this->getDbname() ) { - return false; + return array(); } $savedSearchesTbl = Util::backquote($this->_config['cfgRelation']['db'])