From the array_merge() documentation:

Warning

The behavior of array_merge() was modified in PHP 5. Unlike PHP 4, array_merge() now only accepts parameters of type array. However, you can use typecasting to merge other types.

This causes the module to silently fail. The so-called "processed" arguments are actually deleted. The returned array from views_argument_api_process_argument_elements_by_view($view_name, $form_values) has its keys intact but its values missing. I've attached a patch which will fix the problem.

CommentFileSizeAuthor
array_merge_fix.patch635 bytesjennycita

Comments

owen barton’s picture

I just posted a fix for this (I hadn't seen your issue yet!), and a bunch of other PHP5 related warnings at http://drupal.org/node/158329
- we may want to mark this one as a dupe, or reroll my patch without this fix.

Morris Singer’s picture

This should be fixed starting in version 5.x-1.4. I am running PHP4, which hadn't given me errors, so I never knew I had to do this. Thanks for the head's up.

Morris Singer’s picture

Status: Active » Fixed

Marking fixed.

Anonymous’s picture

Status: Fixed » Closed (fixed)