1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

add $currentUser to $e107 object, added MYSQL_ASSOC to get_user_data query

This commit is contained in:
mcfly 2008-12-02 18:27:35 +00:00
parent 91a116c3bd
commit 3d61d07e8c

View File

@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/class2.php,v $
| $Revision: 1.80 $
| $Date: 2008-12-01 01:10:50 $
| $Revision: 1.81 $
| $Date: 2008-12-02 18:27:35 $
| $Author: mcfly_e107 $
+----------------------------------------------------------------------------+
*/
@ -1244,7 +1244,7 @@ function get_user_data($uid, $extra = '')
return FALSE;
}
}
$var = $e107->sql->db_Fetch();
$var = $e107->sql->db_Fetch(MYSQL_ASSOC);
if(!$extended_struct = getcachedvars('extended_struct'))
{
@ -1466,6 +1466,7 @@ function init_session()
$currentUser = $result;
$currentUser['user_realname'] = $result['user_login']; // Used by force_userupdate
$e107->currentUser = &$currentUser;
define('USERLV', $result['user_lastvisit']);
if ($result['user_ban'] == 1)