Closed aaemnnosttv closed 9 years ago
This code will produce a fatal error if $insert is empty.
$insert
$content = htmlqp($html); $content->find('>p')->eq($insert_index)->after($insert);
Fatal error: Call to a member function cloneNode() on a non-object Querypath/QueryPath/DOMQuery.php on line 1439
QueryPath 3.0.3
Thanks. I'll take a look. While it's probably not highly relevant, which version of PHP are you using?
This code will produce a fatal error if
$insert
is empty.QueryPath 3.0.3