From 44e0fa674564d2b996eefcd2ccf8644c99054b99 Mon Sep 17 00:00:00 2001 From: Neozonz Date: Sun, 19 Jan 2014 09:35:39 -0500 Subject: [PATCH] Reverted --- public/include/classes/share.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/include/classes/share.class.php b/public/include/classes/share.class.php index 0a8035ca..42242632 100644 --- a/public/include/classes/share.class.php +++ b/public/include/classes/share.class.php @@ -331,7 +331,7 @@ class Share Extends Base { AND id > ? AND UNIX_TIMESTAMP(time) >= ? AND UNIX_TIMESTAMP(time) <= ( ? + 60 ) - ORDER BY id DESC LIMIT 1"); + ORDER BY id ASC LIMIT 1"); if ($this->checkStmt($stmt) && $stmt->bind_param('iii', $last, $aBlock['time'], $aBlock['time']) && $stmt->execute() && $result = $stmt->get_result()) { $this->oUpstream = $result->fetch_object(); $this->share_type = 'upstream_share'; @@ -347,7 +347,7 @@ class Share Extends Base { WHERE our_result = 'Y' AND id > ? AND UNIX_TIMESTAMP(time) >= ? - ORDER BY id DESC LIMIT 1"); + ORDER BY id ASC LIMIT 1"); if ($this->checkStmt($stmt) && $stmt->bind_param('ii', $last, $aBlock['time']) && $stmt->execute() && $result = $stmt->get_result()) { $this->oUpstream = $result->fetch_object(); $this->share_type = 'any_share';