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

Bug #1913 Notice error generated when array index not set
Submitted: 2004-07-19 23:48 UTC
From: yaman666 at comcast dot net Assigned: thesaur
Status: Closed Package: HTML_Page2
PHP Version: 5.0.0 OS: Gentoo Linux
Roadmaps: (Not assigned)    
Subscription  


 [2004-07-19 23:48 UTC] yaman666 at comcast dot net
Description: ------------ Not really an important bug, but on my login page I get the following error: <b>Notice</b>: Undefined index: variant in <b>/usr/lib/php/HTML/Page2.php</b> on line <b>1088</b><br /> It can be fixed by changing line 1088 from: if ($this->_doctype['variant']) { to if (isset($this->_doctype['variant']) && $this->_doctype['variant']) {

Comments

 [2004-07-20 10:18 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-20 13:09 UTC] yaman666 at comcast dot net
That is correct - XHTML 1.1. And in my php.ini I have errors set to display all, including notices, that's why I noticed that one. But adding a check to see whether $this->_doctype['variant'] is set seems to have fixed it. I haven't really looked at the code more closely.
 [2004-07-24 10:27 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-24 13: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!