From 9dfb2649e530901ae700806363b54ac88f1ee54a Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sun, 20 Nov 2016 19:52:02 +0100 Subject: [PATCH] Revert "Properly fix prev/next in set." This reverts commit 94427a4c5c03b1368356279781bddf6c82527831. --- models/Asset.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/Asset.php b/models/Asset.php index 5f061b14..f1ddec61 100644 --- a/models/Asset.php +++ b/models/Asset.php @@ -515,12 +515,12 @@ class Asset INNER JOIN assets AS a ON a.id_asset = t.id_asset WHERE t.id_tag = {int:id_tag} AND a.date_captured <= {datetime:date_captured} AND - a.id_asset <= {int:id_asset} + a.id_asset != {int:id_asset} ORDER BY a.date_captured DESC' : ' FROM assets AS a WHERE date_captured >= {datetime:date_captured} AND - a.id_asset >= {int:id_asset} + a.id_asset != {int:id_asset} ORDER BY date_captured ASC') . ' LIMIT 1',