Adding checking for small and mediums sizes:
if (isset($photo['url_s']) and $photo['url_s']){ $small_url = $photo['url_s']; }
if (isset($photo['url_m']) and $photo['url_m']){ $medium_url = $photo['url_m']; }
Adding checking for small and mediums sizes:
if (isset( $photo[ 'url_s' ]) and $photo['url_s']){
$small_url = $photo['url_s'];
}
if (isset( $photo[ 'url_m' ]) and $photo['url_m']){
$medium_url = $photo['url_m'];
}