Commit 041b8e57 authored by Feu's avatar Feu

mort au java et ses salles habitudes

parent f06734ad
......@@ -574,7 +574,7 @@ class sqltable2 extends stdcontents
if ( count($col[2]) == 1 ) // cas d'une simple colonne
$rewriter->add_orderby($col[2][0],$sort{0}=="d"?'DESC':'ASC');
else
$rewriter->add_orderby('COLASCE('+implode(',',array_reverse($col[2]))+')',$sort{0}=="d"?'DESC':'ASC');
$rewriter->add_orderby('COLASCE('.implode(',',array_reverse($col[2])).')',$sort{0}=="d"?'DESC':'ASC');
}
}
$this->set_data($id_name,new requete($db,$rewriter->get_sql()),$rewriter->get_sql());
......
......@@ -181,9 +181,6 @@ class sqlrewriter
function add_orderby ( $nom, $o = 'ASC' )
{
if ( count($this->fields) == 0 )
$this->extract_fields();
if ( empty($this->orderby) )
$this->orderby = 'ORDER BY '.$nom.' '.$o.' ';
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment