fix broken filter for search strings

This commit is contained in:
Klaus Leithoff 2014-01-20 11:13:03 +00:00
parent 5ee25dc26b
commit ac50def034

View File

@ -1538,7 +1538,7 @@ class mail_bo
//_debug_array($_criterias); //_debug_array($_criterias);
if (self::$debug) error_log(__METHOD__.__LINE__.' Criterias:'.(!is_array($_criterias)?" none -> returning $all":array2string($_criterias))); if (self::$debug) error_log(__METHOD__.__LINE__.' Criterias:'.(!is_array($_criterias)?" none -> returning $all":array2string($_criterias)));
if(!is_array($_criterias) || $_criterias['status']=='any') { if((!is_array($_criterias) || $_criterias['status']=='any') && !isset($_criterias['string']) && empty($_criterias['string'])) {
$imapFilter->flag('DELETED', $set=false); $imapFilter->flag('DELETED', $set=false);
return $imapFilter; return $imapFilter;
} }