Date: 01/26/01
- Next message: Herbel, Rick: "RE: [phplib] mysql_insert_id() returns zero"
- Previous message: znc <email protected>: "[phplib] Catalog"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
it looks like I have found a bug in phplib 7.2c.
If you create a radio-button element in oohforms and assign "0" as
value to one of the buttons, this button will always be selected.
A script showing the bug is attatched.
I have found the bug in the code and attatched a patch file.
I have also found a typo in a variable-name ("falg_nametranslation")
some lines above. I do not know what nametranslation is good for so
I do not know what difference this makes.
Regards,
Gerd
diff -r -u phplib-7.2c.orig/php/oohforms.inc phplib-7.2c/php/oohforms.inc
--- phplib-7.2c.orig/php/oohforms.inc Fri Jan 26 16:22:48 2001
+++ phplib-7.2c/php/oohforms.inc Fri Jan 26 16:23:45 2001
@@ -275,10 +275,10 @@
$this->elements[$name]["which"] = 0;
$el = $this->elements[$name]["ob"];
- if (true == $falg_nametranslation)
+ if (true == $flag_nametranslation)
$el->name = $org_name;
- if (false == $value)
+ if (is_bool($value) && $value==false)
$value = $el->value;
if ($this->elements[$name]["frozen"])
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Herbel, Rick: "RE: [phplib] mysql_insert_id() returns zero"
- Previous message: znc <email protected>: "[phplib] Catalog"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

