Autre essai

This commit is contained in:
Michael RICOIS 2012-02-20 14:49:24 +00:00
parent b7bc20247c
commit a76621a8e5

View File

@ -1403,7 +1403,7 @@ class PiecesController extends Zend_Controller_Action
$bilans = array();
if ( !empty($siren) || intval($siren)==0 ){
foreach (glob("$path/$siren_*.pdf") as $filename) {
preg_match('/^([0-9]{9})_([0-9]{8})/', $filename, $matches);
preg_match('/([0-9]{9})_(.*)/', $filename, $matches);
$date = $matches[2];
if ( $user->checkPerm('actes') ) {
$href = $this->view->url(array(