Commit 188fe0ca authored by Feu's avatar Feu

un grand coup de sqlrewriter

parent 83054a11
......@@ -538,9 +538,9 @@ class sqltable2 extends stdcontents
{
switch ( $filter{1} )
{
case "d" : $val = date('Y-m-d H:i:s',datetime_to_timestamp(substr($filter,2))); break:
case "m" : $val = get_prix(substr($filter,2)); break:
default : $val = substr($filter,2); break:
case "d" : $val = date('Y-m-d H:i:s',datetime_to_timestamp(substr($filter,2))); break;
case "m" : $val = get_prix(substr($filter,2)); break;
default : $val = substr($filter,2); break;
}
switch ( $filter{0} )
{
......
......@@ -179,7 +179,7 @@ class sqlrewriter
$this->orderby = '';
}
funtion add_orderby ( $nom, $o = 'ASC' )
function add_orderby ( $nom, $o = 'ASC' )
{
if ( count($this->fields) == 0 )
$this->extract_fields();
......
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