From f59d648bda3554c5668c5fb81ba15b9c5c1302fc Mon Sep 17 00:00:00 2001 From: lBrieu Date: Mon, 29 Aug 2011 15:39:57 +0000 Subject: [PATCH] git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8236 b9a71923-0436-4b27-9f14-aed3839534dd --- 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)