#21019 [NEW]: isset lack in quickform

From: Date: Sat, 14 Dec 2002 22:32:51 +0000
Subject: #21019 [NEW]: isset lack in quickform
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-11670@lists.php.net to get a copy of this message
From: entis@poczta.fm Operating system: winxp PHP version: 4.2.3 PHP Bug Type: PEAR related Bug description: isset lack in quickform 1. Code (part of QuickForm_example.php) ... $checkbox[] = &HTML_QuickForm::createElement('checkbox', 'A', null, 'A'); ... 2. Result in browser Notice: Undefined property: _submitValues in c:\...\HTML\QuickForm\checkbox.php on line 233 3. Bug file HTML/QuickForm/checkbox.php method onQuickFormEvent ... if (count($caller->_submitValues) > 0) { ... 4. Solution if (isset($caller->_submitValues) && (count($caller->_submitValues) > 0)) { -- Edit bug report at http://bugs.php.net/?id=21019&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21019&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21019&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21019&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21019&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21019&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21019&r=support Expected behavior: http://bugs.php.net/fix.php?id=21019&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21019&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21019&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21019&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21019&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21019&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21019&r=isapi

« previous php.pear.dev (#11670) next »