mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-31 15:24:31 +03:00
PageContent return null issue
This commit is contained in:
@ -370,6 +370,6 @@ class PageContent
|
||||
$dom->loadHTML($htmlContent);
|
||||
$images = $dom->getElementsByTagName('img');
|
||||
|
||||
return $images[0]->getAttribute('src');
|
||||
return $images ? $images[0]->getAttribute('src') : null;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user