diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2005-01-27 18:59:38 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2005-01-27 18:59:38 +0000 |
| commit | b57ccb8cb9c597f14e9650ae3ef18afd13c1bd38 (patch) | |
| tree | 4035ffeeff6a55d0950ffabfe23ada6465c6013f /phpBB/includes/functions_user.php | |
| parent | 7253ee19caf5fdc030f2aa6fae851e8f6902f432 (diff) | |
| download | forums-b57ccb8cb9c597f14e9650ae3ef18afd13c1bd38.tar forums-b57ccb8cb9c597f14e9650ae3ef18afd13c1bd38.tar.gz forums-b57ccb8cb9c597f14e9650ae3ef18afd13c1bd38.tar.bz2 forums-b57ccb8cb9c597f14e9650ae3ef18afd13c1bd38.tar.xz forums-b57ccb8cb9c597f14e9650ae3ef18afd13c1bd38.zip | |
fix admin_session "bug"
git-svn-id: file:///svn/phpbb/trunk@5083 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_user.php')
| -rw-r--r-- | phpBB/includes/functions_user.php | 4 |
1 files changed, 2 insertions, 2 deletions
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']; |
