•  

Forum

Moderated by: stefan, hombergs, xweber
Forum: Bugs
Post Reply in Topic: opn_FormularClass bug...
Go to: OpenPHPnuke International Support Forum Index


Nickname:
 
Security Code
Security Code
reload

Topic Review

Author

Unregistered User
opn_FormularClass bug...

Posted: 2004-09-20 21:31

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


Quote Printer friendly page upwards
 
Page took 0.07600 seconds to load