[repo.professor] prevent wrong statements to be executed
This commit is contained in:
parent
99351cb8ab
commit
821edf3f70
|
@ -180,6 +180,7 @@ class professor extends Repo_i {
|
||||||
$st = $this->pdo->prepare("SELECT * FROM `Professeur`$cond GROUP BY abreviation ASC");
|
$st = $this->pdo->prepare("SELECT * FROM `Professeur`$cond GROUP BY abreviation ASC");
|
||||||
|
|
||||||
/* (3) Bind params and execute statement */
|
/* (3) Bind params and execute statement */
|
||||||
|
if( is_bool($st) ) return [];
|
||||||
$success = $st->execute($parm);
|
$success = $st->execute($parm);
|
||||||
|
|
||||||
/* (4) Manage error */
|
/* (4) Manage error */
|
||||||
|
@ -270,6 +271,8 @@ class professor extends Repo_i {
|
||||||
Prof.idProfesseur;");
|
Prof.idProfesseur;");
|
||||||
|
|
||||||
/* (3) Bind params and execute statement */
|
/* (3) Bind params and execute statement */
|
||||||
|
if( is_bool($st) ) return [];
|
||||||
|
|
||||||
$success = $st->execute($parm);
|
$success = $st->execute($parm);
|
||||||
|
|
||||||
/* (4) Manage error */
|
/* (4) Manage error */
|
||||||
|
|
Loading…
Reference in New Issue