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

Request #2009 Warning occurs.
Submitted: 2004-07-28 22:52 UTC
From: elf at php dot net Assigned:
Status: Bogus Package: HTML_QuickForm_Controller
PHP Version: 4.3.8 OS: Fedora Core 1
Roadmaps: (Not assigned)    
Subscription  


 [2004-07-28 22:52 UTC] elf at php dot net
Description: ------------ When there is no value in a page, warning occurs. [Thu Jul 29 07:47:09 2004] [error] PHP Warning: Invalid argument supplied for foreach() in /.../pear/HTML/QuickForm/Controller.php on line 413 Patch blow. --- pear/HTML/QuickForm/Controller.php.org 2004-07-29 07:52:10.000000000 +0900 +++ pear/HTML/QuickForm/Controller.php 2004-07-29 07:50:46.000000000 +0900 @@ -410,6 +410,7 @@ } foreach ($pages as $page) { // skip elements representing actions + if ( is_array($data['values'][$page])){ foreach ($data['values'][$page] as $key => $value) { if (0 !== strpos($key, '_qf_')) { if (isset($values[$key]) && is_array($value)) { @@ -419,6 +420,7 @@ } } } + } } return $values; }

Comments

 [2004-07-29 01:29 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-07-29 06:15 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!