Protection chaine caractère

This commit is contained in:
Michael RICOIS 2012-12-05 13:59:34 +00:00
parent f402466a20
commit 8fbd4f9d22

View File

@ -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);
}