Closed (fixed)
Project:
Media Gallery
Version:
7.x-1.0-beta7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Mar 2012 at 21:14 UTC
Updated:
13 Jul 2012 at 23:41 UTC
Every first media upload into a empty gallery produces a notice, followed by a warning.
Notice: Undefined index: und in media_gallery_add_images() (line 264 of [...]\sites\all\modules\media_gallery\media_gallery.pages.inc).
Warning: Invalid argument supplied for foreach() in media_gallery_add_images() (line 265 of [...]\sites\all\modules\media_gallery\media_gallery.pages.inc).The reason is, that the media_gallery_media property is empty.
Patch applied, tested on a fresh installation.
| Comment | File | Size | Author |
|---|---|---|---|
| media-gallery-notice-warning-on-first-media-upload-0.patch | 564 bytes | moloc |
Comments
Comment #1
lsolesen commented