diff --git a/bridges/VkBridge.php b/bridges/VkBridge.php index 89380963..a23c681c 100644 --- a/bridges/VkBridge.php +++ b/bridges/VkBridge.php @@ -297,6 +297,9 @@ class VkBridge extends BridgeAbstract $item = []; $content = strip_tags(backgroundToImg($post->find('div.wall_text', 0)->innertext), '
'); $content .= $content_suffix; + if (!$content) { + $content = '(empty post)'; + } $content = str_get_html($content); foreach ($content->find('img') as $img) { $parsed_src = parse_url($img->getAttribute('src'));