SQL : protection injection
This commit is contained in:
parent
c1aeb5113e
commit
5d8289e2c0
1 changed files with 2 additions and 2 deletions
|
|
@ -66,8 +66,8 @@ class Anc_Plan
|
|||
{
|
||||
if ( $this->id==0) return;
|
||||
|
||||
$sql="select pa_name,pa_description from plan_analytique where pa_id=".$this->id;
|
||||
$ret= $this->db->exec_sql($sql);
|
||||
$sql="select pa_name,pa_description from plan_analytique where pa_id=$1";
|
||||
$ret= $this->db->exec_sql($sql,array($this->id));
|
||||
if ( Database::num_row($ret) == 0)
|
||||
{
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue