The behavior of array_merge() was modified in PHP 5. Unlike PHP 4, array_merge() now only accepts parameters of type array.

Please see patch below

CommentFileSizeAuthor
userplus.module_0.patch458 bytesclandmeter

Comments

aclight’s picture

Status: Active » Reviewed & tested by the community

This patch does fix the problem. I suggest that it be committed.

AC

heine’s picture

Status: Reviewed & tested by the community » Needs work

I do not get the use of array_merge in this context.

Consider:

  $header = array_merge(array(val1), array(val2), array(val3));

vs.

  $header = array(val1, val2, val3);
marcp’s picture

Assigned: Unassigned » marcp
Status: Needs work » Fixed

I'm with Heine on this one -- what was I thinking with the unnecessary array_merge() call in the first place? I checked in the fixed code. Thanks for bringing this up, and sorry it took so long to get fixed.

Marc

-------
http://www.funnymonkey.com
Tools for Teachers

Anonymous’s picture

Status: Fixed » Closed (fixed)