diff options
author | Dhruv Goel <dhruv.goel92@gmail.com> | 2014-08-10 18:36:25 +0200 |
---|---|---|
committer | Dhruv Goel <dhruv.goel92@gmail.com> | 2014-08-10 18:36:25 +0200 |
commit | e0d377bca70cff7846ba920a03b717aac1d208a4 (patch) | |
tree | 4ce8dfb31d3be76d13f9c76404f811e67e0f3e1b /phpBB | |
parent | bc9b813ce704a0d1a10ea259024558773ae5d54b (diff) | |
parent | f471eeda334eb275ec1bd03f4c09cd19f1dcdd8d (diff) | |
download | forums-e0d377bca70cff7846ba920a03b717aac1d208a4.tar forums-e0d377bca70cff7846ba920a03b717aac1d208a4.tar.gz forums-e0d377bca70cff7846ba920a03b717aac1d208a4.tar.bz2 forums-e0d377bca70cff7846ba920a03b717aac1d208a4.tar.xz forums-e0d377bca70cff7846ba920a03b717aac1d208a4.zip |
Merge pull request #2866 from bantu/ticket/12964
[ticket/12964] Correct use of undefined $row variable.
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 984de2165f..fd94e78fee 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -224,12 +224,12 @@ else else { // Attachment is in a private message. - $row['forum_id'] = false; + $post_row = array('forum_id' => false); phpbb_download_handle_pm_auth($db, $auth, $user->data['user_id'], $attachment['post_msg_id']); } $extensions = array(); - if (!extension_allowed($row['forum_id'], $attachment['extension'], $extensions)) + if (!extension_allowed($post_row['forum_id'], $attachment['extension'], $extensions)) { send_status_line(403, 'Forbidden'); trigger_error(sprintf($user->lang['EXTENSION_DISABLED_AFTER_POSTING'], $attachment['extension'])); |