#1984 Warning: Argument #2 is not an array => empty article list

BRANCH-1-9_(CVS)
closed
PHP Error (166)
5
2005-08-30
2005-08-17
Lubos BAJA
No

Warning: array_merge() [function.array-merge]: Argument
#2 is not an array in
lib/multilingual/multilinguallib.php on line 271.

where line 271 contains:
return array_merge($listObjs, null);// take away the
unset rows

This is only a warning, but it leads to empty list of
articles (events).

I have changed it to
return $listObjs;
and it works fine.

Whatever it supposed to do it is not correct with its
comment neither with using of function array_merge;

Discussion

  • Sylvie Greverend

    Logged In: YES
    user_id=784615

    It is depending on php version. Your fix is the good one.
    It has been done in 1.9 cvs on May 5th by redflo

     
  • Sylvie Greverend

    • assigned_to: nobody --> sylvieg
    • status: open --> closed
     

Log in to post a comment.