•  

Forum

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


About posting: Anonymous users can post new topics and replies in this forum.
Nickname:
Message Icon:
                                                                                                                       

more...


HTML : On
BBCode : On
 
BoldItalicUnderlineStrike|SuperscriptSubscriptTypewriterMarquee|Preformatted TextLeft AlignCenteredRight AlignJustify|Horizontal Line
Insert PictureInsert EmailaddressInsert LinkInsert WikipediatermInsert Wikibookterm|Insert QuoteInsert Code|Insert unordered ListInsert ordered ListInsert Listitem|Insert DefintionlistInsert DefinitiontermInsert Defintion|Insert TableInsert TablerowInsert Tablecol|Smilies show/hide
 
Options:







 
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.22405 seconds to load