X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2FPhoto.php;h=014cca7d25f70d22bc4cf195106f7d06a6cc1179;hb=31ad26aae2856fdf7921c53abb8ae525792a05d4;hp=6a7cc3e52c10e93841be33fa7fa3f09c2e650770;hpb=7886de5c393591eaf4e05f2a496a4f40060cb262;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);