mirror of
https://github.com/e107inc/e107.git
synced 2025-02-16 12:34:41 +01:00
add $currentUser to $e107 object, added MYSQL_ASSOC to get_user_data query
This commit is contained in:
parent
91a116c3bd
commit
3d61d07e8c
@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/class2.php,v $
|
| $Source: /cvs_backup/e107_0.8/class2.php,v $
|
||||||
| $Revision: 1.80 $
|
| $Revision: 1.81 $
|
||||||
| $Date: 2008-12-01 01:10:50 $
|
| $Date: 2008-12-02 18:27:35 $
|
||||||
| $Author: mcfly_e107 $
|
| $Author: mcfly_e107 $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@ -1244,7 +1244,7 @@ function get_user_data($uid, $extra = '')
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$var = $e107->sql->db_Fetch();
|
$var = $e107->sql->db_Fetch(MYSQL_ASSOC);
|
||||||
|
|
||||||
if(!$extended_struct = getcachedvars('extended_struct'))
|
if(!$extended_struct = getcachedvars('extended_struct'))
|
||||||
{
|
{
|
||||||
@ -1466,6 +1466,7 @@ function init_session()
|
|||||||
|
|
||||||
$currentUser = $result;
|
$currentUser = $result;
|
||||||
$currentUser['user_realname'] = $result['user_login']; // Used by force_userupdate
|
$currentUser['user_realname'] = $result['user_login']; // Used by force_userupdate
|
||||||
|
$e107->currentUser = &$currentUser;
|
||||||
define('USERLV', $result['user_lastvisit']);
|
define('USERLV', $result['user_lastvisit']);
|
||||||
|
|
||||||
if ($result['user_ban'] == 1)
|
if ($result['user_ban'] == 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user