Skip to content

Commit

Permalink
Check if baseURI is set
Browse files Browse the repository at this point in the history
  • Loading branch information
rkemmere committed Dec 15, 2022
1 parent 4140faf commit 3c3fbcc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/server/lib/project-manager-favicon.cronjob.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ public function getFavicon ($url) {
if (!$dom) {
// $error[]='Error parsing the DOM of the file';
} else {
$domxml = simplexml_import_dom($dom);

if (!is_null($dom->baseURI))
$domxml = simplexml_import_dom($dom);

if ($domxml) {

Expand Down

0 comments on commit 3c3fbcc

Please sign in to comment.