summaryrefslogtreecommitdiff
path: root/includes/file.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-01-25 22:14:06 +0000
committerDries Buytaert <dries@buytaert.net>2007-01-25 22:14:06 +0000
commit3b543c18f58bf0aa4fe5eec7071a88d58a003e9f (patch)
tree22170f583ede8364a19bfaa1afdd017e20868914 /includes/file.inc
parentdb7dcfd444e16cd860b74dd1f874ebca62461d4c (diff)
downloadbrdo-3b543c18f58bf0aa4fe5eec7071a88d58a003e9f.tar.gz
brdo-3b543c18f58bf0aa4fe5eec7071a88d58a003e9f.tar.bz2
- Rollback of E_ALL patch. Too much extra breakage.
Diffstat (limited to 'includes/file.inc')
-rw-r--r--includes/file.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/file.inc b/includes/file.inc
index e7c97a316..702641312 100644
--- a/includes/file.inc
+++ b/includes/file.inc
@@ -193,7 +193,7 @@ function file_check_upload($source = 'upload') {
}
// If a file was uploaded, process it.
- if (isset($_FILES["files"]["name"][$source]) && is_uploaded_file($_FILES["files"]["tmp_name"][$source])) {
+ if ($_FILES["files"]["name"][$source] && is_uploaded_file($_FILES["files"]["tmp_name"][$source])) {
// Check for file upload errors and return FALSE if a
// lower level system error occurred.
@@ -253,7 +253,7 @@ function file_check_upload($source = 'upload') {
else {
// In case of previews return previous file object.
- if (isset($_SESSION['file_uploads'][$source]->filepath) && file_exists($_SESSION['file_uploads'][$source]->filepath)) {
+ if (file_exists($_SESSION['file_uploads'][$source]->filepath)) {
return $_SESSION['file_uploads'][$source];
}
}