fix in where clause

This commit is contained in:
Dany De Bontridder 2010-07-20 20:25:57 +00:00
parent 167ef6d9f4
commit 4c252a2753
2 changed files with 2 additions and 2 deletions

View file

@ -114,7 +114,7 @@ class @class_name@ @mother_class@
{
$where="";
if ( trim($cond) != '') $where="where";
$sql="select * from @table@ where $cond";
$sql="select * from @table@ $where $cond";
$aobj=array();
$array= $this->cn->get_array($sql,$p_array);
// map each row in a object