Index: trunk/core/kernel/db/dblist.php =================================================================== diff -u -r2428 -r2581 --- trunk/core/kernel/db/dblist.php (.../dblist.php) (revision 2428) +++ trunk/core/kernel/db/dblist.php (.../dblist.php) (revision 2581) @@ -517,10 +517,8 @@ function GetOrderDirection($pos=NULL) { - if(!$this->OrderFields[$pos]) - $pos = 0; - - return $this->OrderFields[$pos][1]; + if( !getArrayValue($this->OrderFields, $pos) ) $pos = 0; + return getArrayValue($this->OrderFields, $pos, 1); } /**