diff --git a/bridges/VkBridge.php b/bridges/VkBridge.php index 2e03790b2bd..87eaef20583 100644 --- a/bridges/VkBridge.php +++ b/bridges/VkBridge.php @@ -423,11 +423,11 @@ protected function getCleanVideoLinks() { 'count' => 200 )); - if (isset($result['error'])) return; - - foreach($result['response']['items'] as $item) { - $video_id = strval($item['owner_id']) . '_' . strval($item['id']); - $this->videos[$video_id]['url'] = $item['player']; + if (!isset($result['error'])) { + foreach($result['response']['items'] as $item) { + $video_id = strval($item['owner_id']) . '_' . strval($item['id']); + $this->videos[$video_id]['url'] = $item['player']; + } } foreach($this->items as &$item) {