Zen Cart Logo
Forums / Bug Reports / [Done v1.3.8] Bad option image check in tpl_modules_attributes.php

[Done v1.3.8] Bad option image check in tpl_modules_attributes.php

Locked

Views: 1,523

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
9 Jan 2007, 3:38 AM
#1
asknight avatar

asknight

New Zenner

Join Date:
Oct 2004
Location:
Las Vegas, NV ~ USA
Posts:
6
Plugin Contributions:
0

[Done v1.3.8] Bad option image check in tpl_modules_attributes.php

there are two checks for presence of option images in this file - basically:

if ($options_attributes_image[$i] != '') {
.
.
.
}

and each fails it's purpose since the value is actuall a 'space' unless the image filename does exists.

I't not likely noticed because only that space is ever returned to the browser, yea the processing is wasted.

I am currently working around this with :
if (trim($options_attributes_image[$i]) != '') {
.
.
.
}