Closed (fixed)
Project:
ImageCache
Version:
5.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 May 2007 at 08:37 UTC
Updated:
13 Dec 2007 at 00:32 UTC
at the beginning of function imagecache_field_formatter() (line 245) there's a check
if (!isset($item['fid'])) {
unfortunately the value $item['fid'] is set to 0 which makes this check not work.
replacing the check with
if (empty($item['fid'])) {
makes things work as expected.
Comments
Comment #1
hbfkf commentedWorks for me. Thanks a lot.
Comment #2
buddaThe code looks like it was taken right out of the example CCK code.
It also appears to be missing the 4th parameter for the hook
$node?Comment #3
dopry commentedumm no...
$arr = array('fid' => 0)
isset($arr['fid']) returns true....