diff --git a/phpFlickr.php b/phpFlickr.php index 975371e..0e840a3 100644 --- a/phpFlickr.php +++ b/phpFlickr.php @@ -368,6 +368,11 @@ function buildPhotoURL ($photo, $size = "Medium") { //receives an array (can use the individual photo data returned //from an API call) and returns a URL (doesn't mean that the //file size exists) + + $id = $photo['id']; + if (isset($photo['primary'])) // Get Thumb Album + $id = $photo['primary']; + $sizes = array( "square" => "_s", "square_75" => "_s",