fixes in conditions
This commit is contained in:
parent
c30a4a5da1
commit
c4a7f65833
2 changed files with 13 additions and 7 deletions
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
|
|
@ -785,6 +785,12 @@ class Webmodel {
|
|||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$this->conditions=trim($str_conditions);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue