codesite...@google.com
unread,Feb 12, 2009, 3:37:52 PM2/12/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to surforce...@googlegroups.com
Author: enriqueplace
Date: Thu Feb 12 12:28:24 2009
New Revision: 48
Modified:
trunk/library/Zsurforce/Generic/ControllerUsuarios.php
Log:
bug: cuando el usuario está deslogueado ya no tiene los datos para
persistir, por lo tanto falla. Se pregunta ahora si el usuario existe, de
lo contrario hace un log genérico
Modified: trunk/library/Zsurforce/Generic/ControllerUsuarios.php
==============================================================================
--- trunk/library/Zsurforce/Generic/ControllerUsuarios.php (original)
+++ trunk/library/Zsurforce/Generic/ControllerUsuarios.php Thu Feb 12
12:28:24 2009
@@ -69,10 +69,14 @@
public function init()
{
parent::init();
- Models_Usuarios::registrarAcceso(
- $this->_user->usuario_mail,
- $this->_moduleName,
- $this->_controllerName
- );
+ if($this->_user){
+ Models_Usuarios::registrarAcceso(
+ $this->_user->usuario_mail,
+ $this->_moduleName,
+ $this->_controllerName
+ );
+ }else{
+ Models_Usuarios::registrarAcceso();
+ }
}
}