If I don't have any content types set to be gallery or image content types, I get the following errors:
warning: array_merge() [function.array-merge]: Argument #1 is not an array in /var/www/dev/sites/all/modules/node_gallery/node_gallery.inc on line 61.
As well as all sorts of messages like this in my watchdog:
in_array() [function.in-array]: Wrong datatype for second argument in /var/www/dev/sites/all/modules/node_gallery/node_gallery.module on line 498.
I believe the attached patch takes care of these issues.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | node_gallery.inc_.patch | 683 bytes | shaisachs |
Comments
Comment #1
shaisachs commentedWhoops! Somehow that file didn't attach.
Comment #2
justintime commentedThanks - committed your patch into CVS!
Comment #4
justintime commentedThis patch actually broke some contrib modules (i18n specifically), the fix was to move the init of the array down by a line - see #801012: Conflict with i18n: Sorting/Managing Galleries empty - uploads failing (Dev broken?)