From 44dd97b2cbd0bc0080f3dda5ee1a2b19979d7cf6 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Sun, 15 Jun 2014 16:01:31 +0200 Subject: [PATCH] [CHANGE] Find max ID first --- include/classes/share.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/classes/share.class.php b/include/classes/share.class.php index b50188f8..23a7911e 100644 --- a/include/classes/share.class.php +++ b/include/classes/share.class.php @@ -129,8 +129,8 @@ class Share Extends Base { * return array data Returns an array with usernames as keys for easy access **/ function getArchiveShares($iCount) { - $iMinId = $this->getMinArchiveShareId($iCount); $iMaxId = $this->getMaxArchiveShareId(); + $iMinId = $this->getMinArchiveShareId($iCount); $stmt = $this->mysqli->prepare(" SELECT a.id,