protect sql
This commit is contained in:
parent
66f22175dd
commit
ccfa69f9bc
1 changed files with 2 additions and 2 deletions
|
|
@ -1018,8 +1018,8 @@ class Fiche
|
|||
function getName()
|
||||
{
|
||||
$sql="select ad_value from fiche_detail
|
||||
where ad_id=1 and f_id=".$this->id;
|
||||
$Res=$this->cn->exec_sql($sql);
|
||||
where ad_id=1 and f_id=$1";
|
||||
$Res=$this->cn->exec_sql($sql,array($this->id));
|
||||
$r=Database::fetch_all($Res);
|
||||
if ( sizeof($r) == 0 )
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue