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
Comment #1
Andreas Wolf commentedI get the same error messages.
Comment #2
steve hanson commentedIn line 94 of the module, the first array needs to be cast as an array --
$output = array_merge((array)$output, $result);
Comment #3
merlinofchaos commentedFixed, though this is fixed by initializing $output to array() rather than casting it every time.
Comment #4
(not verified) commented