Ticket #1484281 (closed Bugs: fixed)

Opened 2 years ago

Last modified 13 months ago

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

Changed 2 years ago by thomasb

  • status changed from new to closed
  • resolution set to fixed

Fixed in Trunk (r504)

Changed 13 months ago by yitbos

I am getting this same error when I try to open an eml attachment in roundcube..I am running v0.2-alpha and checked to verify the patch does exist...

Note: See TracTickets for help on using tickets.