This commit is contained in:
Michael RICOIS 2012-12-05 13:58:19 +00:00
parent 0b1bfe2ca7
commit f402466a20

View File

@ -30,8 +30,10 @@ class IndexController extends Zend_Controller_Action
->where("dateStop != '0000-00-00 00:00:00'")
->where("error = ''")
->order('dateStart DESC');
if ( $idClient ) {
if ( intval($idClient)!=0 ) {
$sql->where('fichier LIKE '.$idClient.'-%');
$sql->__toString();
} else {
$sql->limit(5);
}