X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2FPhoto.php;h=014cca7d25f70d22bc4cf195106f7d06a6cc1179;hb=250f978872daeb3cfe02b2ac63ffd2d893a53aa0;hp=6a7cc3e52c10e93841be33fa7fa3f09c2e650770;hpb=9518785c819fa7316745aa31f6adae14e593b904;p=friendica.git diff --git a/include/Photo.php b/include/Photo.php index 6a7cc3e52c..014cca7d25 100644 --- a/include/Photo.php +++ b/include/Photo.php @@ -707,11 +707,6 @@ class Photo { ); } - // Update the cached values - if ($album != 'Contact Photos') { - photo_albums($uid, true); - } - return $r; } } @@ -872,7 +867,7 @@ function get_photo_info($url) { $data = Cache::get($url); - if (is_null($data) OR !$data) { + if (is_null($data) OR !$data OR !is_array($data)) { $img_str = fetch_url($url, true, $redirects, 4); $filesize = strlen($img_str);