fixes in conditions

This commit is contained in:
Antonio de la Rosa 2016-09-05 06:29:29 +02:00
parent c30a4a5da1
commit c4a7f65833
2 changed files with 13 additions and 7 deletions

View file

@ -27,7 +27,7 @@ function select_a_row_method_class($class, $idrow, $arr_select=array(), $raw_que
settype($idrow, 'integer');
$class->set_conditions('where '.$class->name.'.`'.$class->idmodel.'`=\''.$idrow.'\'');
$class->set_conditions(['where '.$class->name.'.`'.$class->idmodel.'`=?', [$idrow]]);
$class->set_limit('limit 1');