Correction condition dateFin de contrat

This commit is contained in:
Michael RICOIS 2012-12-19 17:05:14 +00:00
parent 39320764dc
commit c1b1def04d

View File

@ -124,7 +124,7 @@ class Application_Controller_Plugin_Auth extends Zend_Controller_Plugin_Abstract
$year = intval(substr($identity->dateContrat,0,4));
$dateFinContrat = mktime($hour,$min,$sec,$month,$day,$year);
if ( $dateFinContrat > time() ) {
if ( time() > $dateFinContrat ) {
$request->setModuleName('default')
->setControllerName('user')
->setActionName('logout')