Fix incorrect error condition

Signed-off-by: Marc Delisle <marc@infomarc.info>
This commit is contained in:
Marc Delisle 2015-12-26 08:37:17 -05:00
parent 8ff09ad52e
commit e501e50f08

View File

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