E_ALL Error in HTML_Table
| From: | Mike McCallister | Date: | Tue, 03 Sep 2002 05:37:32 +0000 |
| Subject: | E_ALL Error in HTML_Table | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-8824@lists.php.net to get a copy of this message | ||
Hello,
HTML_Table has a slight E_ALL problem. The last method in the class:
function _isAttributesArray($attributes)
{
if (is_array($attributes[0]) || (is_string($attributes[0]) && count($attributes) > 1)) {
return true;
}
return false;
}
Can instead be written like this to fix the problem:
function _isAttributesArray($attributes)
{
if (isset($attributes[0]) && (is_array($attributes[0]) || (is_string($attributes[0]) && count($attributes) > 1))) {
return true;
}
return false;
}
Don't have a CVS account and am not really all that good with CVS - need to start using that. Anyways, hope this helps someone out.
Mike