Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.2

Bug #14079 _array2date() generates notice
Submitted: 2008-06-05 08:56 UTC
From: shangxiao Assigned: justinpatrin
Status: Closed Package: DB_DataObject_FormBuilder (version 1.0.0RC7)
PHP Version: 5.2.6 OS: Irrelevant
Roadmaps: 1.0.0    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 25 - 22 = ?

 
 [2008-06-05 08:56 UTC] shangxiao (David Sanders)
Description: ------------ If you use a datetime timestamp in the database but don't want to format the date in formbuilder with am/pm for whatever reason, this will cause a notice that $ampm is undefined: Notice: Undefined variable: ampm in /path/to/project/pear/DB/DataObject/FormBuilder.php on line 2538

Comments

 [2008-06-05 09:09 UTC] shangxiao (David Sanders)
Patch supplied. Simple check isset() before calling strtolower().
 [2008-06-05 15:11 UTC] justinpatrin (Justin Patrin)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.