From b57ccb8cb9c597f14e9650ae3ef18afd13c1bd38 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Thu, 27 Jan 2005 18:59:38 +0000 Subject: fix admin_session "bug" git-svn-id: file:///svn/phpbb/trunk@5083 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_user.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'phpBB/includes/functions_user.php') diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index a0fcfabc48..9791490cf6 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -358,7 +358,7 @@ function user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reas $ip_2_counter = ($ip_1_counter == $ip_range_explode[1]) ? $ip_range_explode[2] : 0; $ip_2_end = ($ip_1_counter < $ip_1_end) ? 254 : $ip_range_explode[6]; - if($ip_2_counter == 0 && $ip_2_end == 254) + if ($ip_2_counter == 0 && $ip_2_end == 254) { $ip_2_counter = 256; $ip_2_fragment = 256; @@ -1025,7 +1025,7 @@ function avatar_upload($data, &$error) $realfilename = $data['user_id'] . '_' . str_replace($bad_chars, '_', $realname) . '.' . $filetype; - if(!$php_move($filename, $phpbb_root_path . $config['avatar_path'] . '/' . $realfilename)) + if (!$php_move($filename, $phpbb_root_path . $config['avatar_path'] . '/' . $realfilename)) { @unlink($filename); $error[] = $user->lang['AVATAR_NOT_UPLOADED']; -- cgit v1.2.1