mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
PageContent return null issue
This commit is contained in:
parent
48587d2c38
commit
7ef17bb394
@ -370,6 +370,6 @@ class PageContent
|
|||||||
$dom->loadHTML($htmlContent);
|
$dom->loadHTML($htmlContent);
|
||||||
$images = $dom->getElementsByTagName('img');
|
$images = $dom->getElementsByTagName('img');
|
||||||
|
|
||||||
return $images[0]->getAttribute('src');
|
return $images ? $images[0]->getAttribute('src') : null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user