From: Thomas Mudrunka Date: Mon, 14 Nov 2011 14:23:29 +0000 (+0100) Subject: Vychozi razeni zmeneno na sestupne (aby byl ihned videt nejnovejsi pohyb) X-Git-Url: http://git.harvie.cz/?a=commitdiff_plain;h=fd479ff5d14a37823d15a0854decc2a6da280ca4;p=mirrors%2FSokoMan.git Vychozi razeni zmeneno na sestupne (aby byl ihned videt nejnovejsi pohyb) --- 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