diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-30 20:47:36 +1100 |
|---|---|---|
| committer | Paul Merrill <napalminc@gmail.com> | 2010-12-01 04:14:16 -0800 |
| commit | ebc5fae32c81b71d326082b099738bbfd73844e2 (patch) | |
| tree | ff2a18c6b02bef0748c948901a8e5a7d57196e52 | |
| parent | 8809b2e50e2c0bb725aeb09d82f6c352e3110332 (diff) | |
Supress PHP errors when moving upload files.
| -rw-r--r-- | post.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
