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 03:56 UTC Modified: 2008-06-05 10:11 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  


 [2008-06-05 03: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 04:09 UTC] shangxiao (David Sanders)
Patch supplied. Simple check isset() before calling strtolower().
 [2008-06-05 10: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.