summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2010-11-30 20:47:36 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2010-11-30 20:47:36 +1100
commitfc00840004352471bdbbb1a3105bc55d913119ef (patch)
treeee02114eadec38d0f6e0a7cba9141a3a16d77a9f /post.php
parent38ac7187fdccf4a672a3c69763035660df53e6f8 (diff)
Supress PHP errors when moving upload files.
Diffstat (limited to 'post.php')
-rw-r--r--post.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/post.php b/post.php
index fcaf3bf5..d5cb9d13 100644
--- a/post.php
+++ b/post.php
@@ -116,7 +116,7 @@
// Just trim the filename if it's too long
if(strlen($post['filename']) > 30) $post['filename'] = substr($post['filename'], 0, 27).'…';
// Move the uploaded file
- if(!move_uploaded_file($_FILES['file']['tmp_name'], $post['file'])) error(ERROR_NOMOVE);
+ if(!@move_uploaded_file($_FILES['file']['tmp_name'], $post['file'])) error(ERROR_NOMOVE);
if($post['zip']) {
// Validate ZIP file