From 7d197afd498ae5ce28b7e6ba9c0a156e0ce76592 Mon Sep 17 00:00:00 2001 From: skeeter Date: Sat, 24 Mar 2001 18:07:00 +0000 Subject: [PATCH] Stream lined the getuser_ip() usage in create(). --- phpgwapi/inc/class.sessions.inc.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.sessions.inc.php b/phpgwapi/inc/class.sessions.inc.php index 297d349b74..7496f3fa44 100644 --- a/phpgwapi/inc/class.sessions.inc.php +++ b/phpgwapi/inc/class.sessions.inc.php @@ -279,15 +279,16 @@ $session_flags = 'N'; } + $user_ip = $this->getuser_ip(); $phpgw->db->query("insert into phpgw_sessions values ('" . $this->sessionid - . "','".$login."','" . $this->getuser_ip() . "','" + . "','".$login."','" . $user_ip . "','" . $now . "','" . $now . "','".$info_string."','" . $session_flags . "')",__LINE__,__FILE__); $phpgw->db->query("insert into phpgw_access_log values ('" . $this->sessionid . "','" - . "$login','" . $this->getuser_ip() . "','$now','') ",__LINE__,__FILE__); + . "$login','" . $user_ip . "','$now','') ",__LINE__,__FILE__); - $phpgw->auth->update_lastlogin($this->account_id,$this->getuser_ip()); + $phpgw->auth->update_lastlogin($this->account_id,$user_ip); return $this->sessionid; }