From 51e679479d22b724c20aee82b5eb4a70db9ef6ac Mon Sep 17 00:00:00 2001 From: Mohammad Shoaib Date: Fri, 19 Feb 2016 12:02:33 +0000 Subject: [PATCH] updated: exclude current view photo --- upload/view_item.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/upload/view_item.php b/upload/view_item.php index 5d65f038..441a6f05 100644 --- a/upload/view_item.php +++ b/upload/view_item.php @@ -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);