From 08700967e2863076c0f523f16f859b23a9614937 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Thu, 25 Oct 2012 13:26:51 +0000 Subject: [PATCH] Correct user information --- application/controllers/ErrorController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/controllers/ErrorController.php b/application/controllers/ErrorController.php index 8d7b0443..d9f7fcaa 100644 --- a/application/controllers/ErrorController.php +++ b/application/controllers/ErrorController.php @@ -22,13 +22,16 @@ class ErrorController extends Zend_Controller_Action break; } + $auth = Zend_Auth::getInstance(); + $identity = $auth->getIdentity(); + //Envoyer les erreurs par mail $message = ''; $message.= 'Erreur Applicative : '; $message.= "\n"; $message.= 'Message : '.$errors->exception->getMessage(); $message.= "\n"; - $message.= 'Utilisateur : '.$user->getLogin(); + $message.= 'Utilisateur : '.$identity->login; $message.= "\n"; $message.= "File :".$errors->exception->getFile().", Ligne : ".$errors->exception->getLine(); $message.= "\n";