Ticket #1484281 (closed Bugs: fixed)
array_merge(): Argument #2 is not an array
| Reported by: | moc | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.1-rc1 |
| Component: | PHP backend | Version: | 0.1-beta2 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
There are some errors in my log raised from the file rcube_imap.inc on line 880. The reason is that the search() method could return FALSE value which can't be used as second argument in the array_merge PHP function.
Here is a patch for it:
foreach ($criteria as $crit)
{
if($search_result = $this->search($mbox_name, $crit, $str, $charset))
$results = array_merge($results, $search_result);
}
Change History
Note: See
TracTickets for help on using
tickets.
