the administration page works as it should with php4, with php5 i get the following error:

* warning: array_merge() [function.array-merge]: Argument #1 is not an array in D:\Programme\xampp\htdocs\drupal-4.7.4\modules\views_bonus\views_bonus.module on line 94.
* warning: array_merge() [function.array-merge]: Argument #1 is not an array in D:\Programme\xampp\htdocs\drupal-4.7.4\modules\views_bonus\views_bonus.module on line 94.
* warning: array_merge() [function.array-merge]: Argument #1 is not an array in D:\Programme\xampp\htdocs\drupal-4.7.4\modules\views_bonus\views_bonus.module on line 94.
* warning: array_merge() [function.array-merge]: Argument #1 is not an array in D:\Programme\xampp\htdocs\drupal-4.7.4\modules\views_bonus\views_bonus.module on line 94.
* warning: array_merge() [function.array-merge]: Argument #1 is not an array in D:\Programme\xampp\htdocs\drupal-4.7.4\modules\views_bonus\views_bonus.module on line 94.
* warning: array_merge() [function.array-merge]: Argument #1 is not an array in D:\Programme\xampp\htdocs\drupal-4.7.4\modules\views_bonus\views_bonus.module on line 94.
* warning: array_merge() [function.array-merge]: Argument #1 is not an array in D:\Programme\xampp\htdocs\drupal-4.7.4\modules\views_bonus\views_bonus.module on line 94.
* warning: array_merge() [function.array-merge]: Argument #1 is not an array in D:\Programme\xampp\htdocs\drupal-4.7.4\modules\views_bonus\views_bonus.module on line 94.
* warning: array_merge() [function.array-merge]: Argument #1 is not an array in D:\Programme\xampp\htdocs\drupal-4.7.4\modules\views_bonus\views_bonus.module on line 94.
* warning: Invalid argument supplied for foreach() in D:\Programme\xampp\htdocs\drupal-4.7.4\modules\views_bonus\views_bonus.module on line 108.

Comments

Andreas Wolf’s picture

I get the same error messages.

steve hanson’s picture

In line 94 of the module, the first array needs to be cast as an array --

$output = array_merge((array)$output, $result);

merlinofchaos’s picture

Status: Active » Fixed

Fixed, though this is fixed by initializing $output to array() rather than casting it every time.

Anonymous’s picture

Status: Fixed » Closed (fixed)