updated: exclude current view photo

This commit is contained in:
Mohammad Shoaib 2016-02-19 12:02:33 +00:00
parent dbc6b2c5e4
commit 51e679479d

View file

@ -128,6 +128,10 @@ $get_limit = create_query_limit($page,MAINPLIST);
$clist = $cond;
$clist['limit'] = $get_limit;
$clist ['order'] = " last_viewed DESC";
if(isset($photo['photo_id']))
{
$clist['exclude'] = $photo['photo_id'];
}
$photos = get_photos($clist);
Assign('photos', $photos);