1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/13454] Remove more unused variables

This should be the last part. Off to checking if the changes were correct.

PHPBB3-13454
This commit is contained in:
Marc Alexander
2015-12-05 16:07:14 +01:00
parent 3b9a9bb04a
commit 73900d1857
16 changed files with 17 additions and 27 deletions

View File

@@ -1403,7 +1403,7 @@ class session
*/
function set_login_key($user_id = false, $key = false, $user_ip = false)
{
global $config, $db;
global $db;
$user_id = ($user_id === false) ? $this->data['user_id'] : $user_id;
$user_ip = ($user_ip === false) ? $this->ip : $user_ip;
@@ -1413,7 +1413,7 @@ class session
$sql_ary = array(
'key_id' => (string) md5($key_id),
'last_ip' => (string) $this->ip,
'last_ip' => (string) $user_id,
'last_login' => (int) time()
);
@@ -1450,7 +1450,7 @@ class session
*/
function reset_login_keys($user_id = false)
{
global $config, $db;
global $db;
$user_id = ($user_id === false) ? (int) $this->data['user_id'] : (int) $user_id;