diff options
Diffstat (limited to 'phpBB/download.php')
-rw-r--r-- | phpBB/download.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/phpBB/download.php b/phpBB/download.php index abc970ea88..9d2efdf9df 100644 --- a/phpBB/download.php +++ b/phpBB/download.php @@ -226,7 +226,13 @@ function send_file_to_browser($attachment, $upload_dir, $category) if (!$result) { - trigger_error('Unable to deliver file.<br />Error was: ' . $php_errormsg, E_USER_WARNING); + // PHP track_errors setting On? + if (!empty($php_errormsg)) + { + trigger_error('Unable to deliver file.<br />Error was: ' . $php_errormsg, E_USER_WARNING); + } + + trigger_error('Unable to deliver file.', E_USER_WARNING); } flush(); |