diff --git a/bridges/VkBridge.php b/bridges/VkBridge.php index 78f867cf..d29c75ea 100644 --- a/bridges/VkBridge.php +++ b/bridges/VkBridge.php @@ -256,7 +256,13 @@ class VkBridge extends BridgeAbstract $original = ''; foreach(array('y_', 'z_', 'w_') as $key) { if (!isset($data['temp'][$key])) continue; - $original = $data['temp']['base'] . $data['temp'][$key][0] . ".jpg"; + if (!isset($data['temp'][$key][0])) continue; + if (substr($data['temp'][$key][0], 0, 4) == "http") { + $base = ""; + } else { + $base = $data['temp']['base']; + } + $original = $base . $data['temp'][$key][0] . ".jpg"; } if ($original) {