Closed (fixed)
Project:
Shadowbox
Version:
7.x-4.0-beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Sep 2012 at 13:20 UTC
Updated:
14 May 2014 at 09:52 UTC
Jump to comment: Most recent
Without the Media module installed, files rendered with Shadowbox will throw an 'undefined index' error at line 304 of file_shadowbox.module. The "type" index of the $item variable is inserted by the Media module. Thus, the error goes away once the Media module is installed. Consider using regex on the "filemime" index to scrub the type. (or, less palatably, make the Media module a dependency).
Comments
Comment #1
manfer commented