{strip} {assign var=author_details value=$this->getUserDetails($uid)} {assign var=picture_album_name value=""} {assign var=picture_album_id value=""} {assign var=picture_added value=""} {assign var=picture_info value=""}
{foreach $query as $r} {if $r.id === $photo} {$picture_album_name=$r.albumname} {$picture_album_id=$r.albid} {$picture_added=$r.padded} {$picture_info=$r.info} {$photo_exist=$r.id} {/if}
{foreachelse} The photo was not found. {/foreach}
{/strip}