Commit b4d724d5 authored by Ruslan Kabalin's avatar Ruslan Kabalin
Browse files

htmltotext: Fixed warning on empty content processing.


Signed-off-by: default avatarRuslan Kabalin <ruslan.kabalin@luns.net.uk>
parent 42e84696
......@@ -124,7 +124,7 @@ class HtmltoText {
}
private function process_children($node) {
if ($node->childNodes->length) {
if (is_object($node) && $node->childNodes->length) {
foreach ($node->childNodes as $child) {
$this->process_node($child);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment