summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2010-11-30 20:47:36 +1100
committerPaul Merrill <napalminc@gmail.com>2010-12-01 04:14:16 -0800
commitebc5fae32c81b71d326082b099738bbfd73844e2 (patch)
treeff2a18c6b02bef0748c948901a8e5a7d57196e52
parent8809b2e50e2c0bb725aeb09d82f6c352e3110332 (diff)
Supress PHP errors when moving upload files.
-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