Fix incorrect error condition
Signed-off-by: Marc Delisle <marc@infomarc.info>
This commit is contained in:
parent
8ff09ad52e
commit
e501e50f08
@ -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'])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user