Protection chaine caractère
This commit is contained in:
parent
f402466a20
commit
8fbd4f9d22
@ -32,8 +32,7 @@ class IndexController extends Zend_Controller_Action
|
||||
->order('dateStart DESC');
|
||||
|
||||
if ( intval($idClient)!=0 ) {
|
||||
$sql->where('fichier LIKE '.$idClient.'-%');
|
||||
$sql->__toString();
|
||||
$sql->where('fichier LIKE "'.$idClient.'-%"');
|
||||
} else {
|
||||
$sql->limit(5);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user