
Morten Sigsgaard - 2009-08-02 16:43:23 -
In reply to message 1 from Franc
Yea same here from the version i downloaded, actually its not just the test code as the error is thrown from the CSSQuery object code.
This is the line in question:
if ($element instanceof DOMElement $elem->hasAttribute("id") && $elem->getAttribute("id") == $id)
It is quite easy to fix though, T_VARIABLE says something about thruth, and we're in an if-sentence. Add the && (and) after DOMElement, though also, 'element' is not in any scope of the function, lets call it 'elem' and we're on the roll again:
if ($elem instanceof DOMElement
&& $elem->hasAttribute("id")
&& $elem->getAttribute("id") == $id)
Congratz on the current secondplace to the author. Hope this is the one and only error, since ive been looking for this feature for a while.