Skip to content

Commit 8043880

Browse files
committed
Merge pull request #10 from MitchellMcKenna/feature/DOMDocument-loadHTML-empty-string-warning
Fix DOMDocument Empty String PHP Warning
2 parents e1aa5a9 + 26044f0 commit 8043880

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

OpenGraph.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ static public function fetch($URI) {
6464

6565
curl_close($curl);
6666

67-
return self::_parse($response);
67+
if (!empty($response)) {
68+
return self::_parse($response);
69+
} else {
70+
return false;
71+
}
6872
}
6973

7074
/**

0 commit comments

Comments
 (0)