Skip to content

Commit 3975d56

Browse files
committed
fix #452
1 parent a48674c commit 3975d56

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

includes/class-response.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,12 @@ public function get_header_links() {
260260
* @return array An array of parsed HTML links.
261261
*/
262262
public function get_html_links() {
263-
$dom = $this->get_dom_document();
263+
$dom = $this->get_dom_document();
264+
265+
if ( ! $dom instanceof DOMDocument ) {
266+
return array();
267+
}
268+
264269
$xpath = new DOMXPath( $dom );
265270
$items = array();
266271

0 commit comments

Comments
 (0)