aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2005-05-05 16:55:05 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2005-05-05 16:55:05 +0000
commitb576d6af0a9c0c78f379ca09069648d87364e1a0 (patch)
treeeb73ff0919d865a420a2dd4cc71409f59da76ebd /phpBB/includes/functions_posting.php
parent16e50db4baf39877fe3e02a13dfc57983b12f414 (diff)
downloadforums-b576d6af0a9c0c78f379ca09069648d87364e1a0.tar
forums-b576d6af0a9c0c78f379ca09069648d87364e1a0.tar.gz
forums-b576d6af0a9c0c78f379ca09069648d87364e1a0.tar.bz2
forums-b576d6af0a9c0c78f379ca09069648d87364e1a0.tar.xz
forums-b576d6af0a9c0c78f379ca09069648d87364e1a0.zip
- some cross-db related changes
- putting active bots array into cache git-svn-id: file:///svn/phpbb/trunk@5140 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index b53492a5a7..e1055cd5f8 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -148,10 +148,18 @@ function upload_attachment($form_name, $forum_id, $local = false, $local_storage
include_once($phpbb_root_path . 'includes/functions_upload.php');
$upload = new fileupload();
- $filedata['post_attach'] = ($upload->is_valid($form_name)) ? true : false;
+ if (!$local)
+ {
+ $filedata['post_attach'] = ($upload->is_valid($form_name)) ? true : false;
+ }
+ else
+ {
+ $filedata['post_attach'] = true;
+ }
if (!$filedata['post_attach'])
{
+ $filedata['error'][] = 'No filedata found';
return $filedata;
}