I noticed that this module fails to run on PHP5 with the following errors being displayed in Drupal,

# warning: array_merge() [function.array-merge]: Argument #1 is not an array in modules\panels\content_types\block.inc on line 25.
# warning: array_merge() [function.array-merge]: Argument #2 is not an array in modules\panels\content_types\block.inc on line 25.

The solution is to edit the line 25 from

$block = (object)array_merge($block,db_fetch_object($result));

to

$block = (object)array_merge((array)$block,(array)db_fetch_object($result));

That solves it.

Comments

merlinofchaos’s picture

Status: Reviewed & tested by the community » Closed (duplicate)