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] thesaur
You're right. That does need to be fixed. Could you provide the doctype you are using? I suppose XHTML 1.1?
 [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] thesaur
I'll fix this this afternoon.
 [2004-07-24 13:29 UTC] thesaur
This has been fixed in CVS. Thanks for helping me make this package better. :-)