summaryrefslogtreecommitdiff
path: root/lib/imagefile.php
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-11-02 17:21:23 +0000
committerSarven Capadisli <csarven@status.net>2009-11-02 17:21:23 +0000
commiteaae5a4c90249330034e8ee1004e85ae6399fe70 (patch)
tree36c5e1420b4340773f7b6cca4ceca0c075869938 /lib/imagefile.php
parent4aa6deb8abb725be7fa6dc30bdfd2e7de1ff24d1 (diff)
parent5581143bee602dbd5417f532f2b483e58d0a4269 (diff)
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'lib/imagefile.php')
-rw-r--r--lib/imagefile.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/imagefile.php b/lib/imagefile.php
index 88f461481..cd2f87e6b 100644
--- a/lib/imagefile.php
+++ b/lib/imagefile.php
@@ -79,7 +79,12 @@ class ImageFile
@unlink($_FILES[$param]['tmp_name']);
throw new Exception(_('Partial upload.'));
return;
+ case UPLOAD_ERR_NO_FILE:
+ // No file; probably just a non-AJAX submission.
+ return;
default:
+ common_log(LOG_ERR, __METHOD__ . ": Unknown upload error " .
+ $_FILES[$param]['error']);
throw new Exception(_('System error uploading file.'));
return;
}