Closed (fixed)
Project:
Flexinode
Version:
master
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Nov 2005 at 10:26 UTC
Updated:
15 Mar 2006 at 07:45 UTC
In field_image.inc lines 136 to 141 read:
if (!isset($field->options)) {
$field['options'][1] = '800x600';
$field['options'][2] = '512x384';
$field['options'][3] = '100x100';
$field['options'][4] = 100;
}
$field is an object, so the assignment does not work and creates a warning. This patch simply replaces those lines with
if (empty($field->options)) {
$field->options = array(
1 => '800x600',
2 => '512x384',
3 => '100x100',
4 => 100,
);
}
Thanks for this great module.
scroogie
| Comment | File | Size | Author |
|---|---|---|---|
| field_image.patch | 631 bytes | scroogie |
Comments
Comment #1
scroogie commentedThis bug still exists in cvs...
Comment #2
Bèr Kessels commentedfixed in HEAD, thanks.
Comment #3
AgnesCB commentedChanging the status since it was commited to HEAD weeks ago (http://drupal.org/cvs?commit=22901).
Comment #4
(not verified) commented