Home » HTML » HTML_Page2 » Bug #1913
Notice error generated when array index not set
Details
| 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) |
Comments
[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']) {
[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.