PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_Page2 » Bug #1913

Notice error generated when array index not set

Details

Submitted2004-07-19 23:48 UTC
Fromyaman666 at comcast dot net
Assignedthesaur
StatusClosed
PackageHTML_Page2
PHP Version5.0.0
OSGentoo 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.