diff options
author | Dhruv <dhruv.goel92@gmail.com> | 2013-02-07 23:59:46 +0530 |
---|---|---|
committer | Dhruv <dhruv.goel92@gmail.com> | 2013-06-12 20:22:36 +0530 |
commit | 80d164b12151c3b3d5eb42d1874a0a1d3b288d12 (patch) | |
tree | 2d8464b322b860ba345e3b10e6388aa01324a1d6 /phpBB | |
parent | fbebc2874fb7f9462b7cf2481a14166cfb906297 (diff) | |
download | forums-80d164b12151c3b3d5eb42d1874a0a1d3b288d12.tar forums-80d164b12151c3b3d5eb42d1874a0a1d3b288d12.tar.gz forums-80d164b12151c3b3d5eb42d1874a0a1d3b288d12.tar.bz2 forums-80d164b12151c3b3d5eb42d1874a0a1d3b288d12.tar.xz forums-80d164b12151c3b3d5eb42d1874a0a1d3b288d12.zip |
[ticket/10820] proper usage of global and local variable browser
PHPBB3-10820
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/download/file.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php index b942c92a1c..6764ee7eac 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -344,7 +344,7 @@ function send_avatar_to_browser($file, $browser) $image_data = @getimagesize($file_path); header('Content-Type: ' . image_type_to_mime_type($image_data[2])); - if (strpos(strtolower($browser), 'msie') !== false && !is_greater_ie7($user->browser)) + if (strpos(strtolower($browser), 'msie') !== false && !is_greater_ie7($browser)) { header('Content-Disposition: attachment; ' . header_filename($file)); @@ -680,7 +680,7 @@ function set_modified_headers($stamp, $browser) // let's see if we have to send the file at all $last_load = isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) ? strtotime(trim($_SERVER['HTTP_IF_MODIFIED_SINCE'])) : false; - if ((strpos(strtolower($browser), 'msie 6.0') === false) && (!is_greater_ie7($user->browser))) + if ((strpos(strtolower($browser), 'msie 6.0') === false) && (!is_greater_ie7($browser))) { if ($last_load !== false && $last_load >= $stamp) { |