diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2004-03-10 20:30:26 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2004-03-10 20:30:26 +0000 |
| commit | 7487bfce48dd90ea370c8a40e67a75b814f2eb37 (patch) | |
| tree | 0896d08ec9993dc920de00ebdcaf9c59eb0792fa /phpBB/download.php | |
| parent | c235dced700cd0223ac36880a25ff25110d8d6f4 (diff) | |
| download | forums-7487bfce48dd90ea370c8a40e67a75b814f2eb37.tar forums-7487bfce48dd90ea370c8a40e67a75b814f2eb37.tar.gz forums-7487bfce48dd90ea370c8a40e67a75b814f2eb37.tar.bz2 forums-7487bfce48dd90ea370c8a40e67a75b814f2eb37.tar.xz forums-7487bfce48dd90ea370c8a40e67a75b814f2eb37.zip | |
- check for array [lang]
- admin_forums delete routine updated
- added extension groups per forum
git-svn-id: file:///svn/phpbb/trunk@4861 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/download.php')
| -rw-r--r-- | phpBB/download.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/download.php b/phpBB/download.php index 7d441d166a..9d61032d15 100644 --- a/phpBB/download.php +++ b/phpBB/download.php @@ -73,7 +73,7 @@ $extensions = array(); obtain_attach_extensions($extensions); // disallowed ? -if (!in_array($attachment['extension'], $extensions['_allowed_'])) +if ((is_array($extensions['_allowed_'][$attachment['extension']]) && !in_array($row['forum_id'], $extensions['_allowed_'][$attachment['extension']])) || !isset($extensions['_allowed_'][$attachment['extension']])) { trigger_error(sprintf($user->lang['EXTENSION_DISABLED_AFTER_POSTING'], $attachment['extension'])); } |
