Author anonymous
Date 2004-09-20 21:31
Posts: Hola all,

I have a problem with AddSelect(...) in the class 'opn_FormularClass'

When I do something like this:

$ma[-1] = ''; for ($min=0; $minAddSelect($dbtimefield.'minute', $ma, '0');


Then on my form in my browser I don't see that the 'zero' is selected and that my 'selected' is ignored.

I noticed that on lines in the file where the class somepares the 'selected' value with the initialisation array that the comparison is done with a == operator.

I think it's best to do it with the strcmp function.

The reason behind this that it fails to compare 0 at some points.

This is on the lines: 1482, 1497,1589,1628 of the classes file.

Ries


Print this page
Close this page

This article comes from OpenPHPnuke International Support

http://www.openphpnuke.com/