From e501e50f081627b6430d47a28a510c6423c244e7 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 26 Dec 2015 08:37:17 -0500 Subject: [PATCH 1/2] 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']) From 9b1d29d9cf5ac324d5bc3d36b69fd63e4a1b4bfb Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 26 Dec 2015 08:38:27 -0500 Subject: [PATCH 2/2] Fix typo 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 224a6f0793..72c6353443 100644 --- a/libraries/SavedSearches.php +++ b/libraries/SavedSearches.php @@ -403,11 +403,11 @@ class SavedSearches } /** - * Get the list of saved search of a user on a DB + * Get the list of saved searches of a user on a DB * * @param string[] $wheres List of filters * - * @return array List of saved search or empty array on failure + * @return array List of saved searches or empty array on failure */ public function getList(array $wheres = array()) {