git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8236 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
835093d7e0
commit
f59d648bda
1 file changed
+1
-1
@@ -42,7 +42,7 @@ class Notification
|
|||||||
|
|
||||||
public static function getLastElementsIdsByType($type, $id_last_element)
|
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)
|
public function updateEmployeeLastElement($type)
|
||||||
|
|||||||
Reference in new issue
Block a user