1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-05 00:42:14 +03:00

PageContent return null issue

This commit is contained in:
James Geiger
2021-02-09 00:21:07 -06:00
parent 48587d2c38
commit 7ef17bb394

View File

@@ -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;
} }
} }