Updated to the recommended 6.x-1.3 version and got the following warnings:
- Warning: array_merge(): Argument #2 is not an array in update_do_one() (line 173 of /var/www/update.php).
- Warning: Invalid argument supplied for foreach() in update_results_page() (line 337 of /var/www/update.php).
This error is caused by the countryban_update_1() function failing to return an array according to the hook_update_N() documentation.
The attached patch fixes the error by using update_sql() instead of db_query().
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | countryban_update_1.patch | 387 bytes | pillarsdotnet |
| countryban.patch | 337 bytes | pillarsdotnet |
Comments
Comment #1
jboukes commentedThanks!
Comment #2
jboukes commentedFixed in 1.4 - thank you for the notice ;)
Comment #3
pillarsdotnet commentedBah. Should have wrapped the result in array().