[surforce-library commit] r48 - trunk/library/Zsurforce/Generic

1 view
Skip to first unread message

codesite...@google.com

unread,
Feb 12, 2009, 3:37:52 PM2/12/09
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();
+ }
}
}
Reply all
Reply to author
Forward
0 new messages