From fd479ff5d14a37823d15a0854decc2a6da280ca4 Mon Sep 17 00:00:00 2001 From: Thomas Mudrunka Date: Mon, 14 Nov 2011 15:23:29 +0100 Subject: [PATCH] Vychozi razeni zmeneno na sestupne (aby byl ihned videt nejnovejsi pohyb) --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 43acfb2..ced23c4 100755 --- a/index.php +++ b/index.php @@ -516,7 +516,7 @@ class Sklad_DB extends PDO { if($where) $sql .= 'WHERE ('.implode(') AND (', $where).")\n"; //ORDER - if(!$order) $order = $class.$suffix_id; + if(!$order) $order = $class.$suffix_id.' DESC'; if($this->contains_history($class)) $order .= ",${class}_valid_from DESC"; $sql .= "ORDER BY $order\n"; //LIMIT/OFFSET -- 2.30.2