updated: exclude current view photo
This commit is contained in:
parent
dbc6b2c5e4
commit
51e679479d
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue