From 5c64f126628788b10623d01f7a59e53b8347a3da Mon Sep 17 00:00:00 2001 From: lBrieu Date: Mon, 29 Aug 2011 15:39:57 +0000 Subject: [PATCH] --- classes/Notification.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Notification.php b/classes/Notification.php index ac75cedc9..2f971318d 100644 --- a/classes/Notification.php +++ b/classes/Notification.php @@ -42,7 +42,7 @@ class Notification public static function getLastElementsIdsByType($type, $id_last_element) { - return Db::getInstance()->ExecuteS('SELECT id_'.$type.' FROM `'._DB_PREFIX_.(($type == 'order') ? $type.'s' : $type).'` WHERE `id_'.$type.'` > '.$id_last_element); + return Db::getInstance()->ExecuteS('SELECT id_'.$type.' FROM `'._DB_PREFIX_.(($type == 'order') ? $type.'s' : $type).'` WHERE `id_'.$type.'` > '.$id_last_element.' ORDER BY `id_'.$type.'` DESC LIMIT 5'); } public function updateEmployeeLastElement($type)