There is a small typo in the function setOrderBy ($sql_orderby, $sql_orderby_seq=null); in std.table.class.inc line 2522
Supplying the paramater $sql_orderby_seq has no effect on the order by sequence because of the following code...
if (!empty($sql_orderby_seq)) {
$this->sql_orderby_seq == $sql_orderby_seq; <-- testing for equality, not assignment
} else {
This should read ...
if (!empty($sql_orderby_seq)) {
$this->sql_orderby_seq = $sql_orderby_seq;
} else {
Cheers,
Braingeyser
[Updated on: Sat, 18 November 2006 00:15]
Report message to a moderator