summaryrefslogtreecommitdiff
path: root/modules/upload/upload.module
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 /modules/upload/upload.module
parentdb7dcfd444e16cd860b74dd1f874ebca62461d4c (diff)
downloadbrdo-3b543c18f58bf0aa4fe5eec7071a88d58a003e9f.tar.gz
brdo-3b543c18f58bf0aa4fe5eec7071a88d58a003e9f.tar.bz2
- Rollback of E_ALL patch. Too much extra breakage.
Diffstat (limited to 'modules/upload/upload.module')
-rw-r--r--modules/upload/upload.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/upload/upload.module b/modules/upload/upload.module
index 15e1526af..5fec76209 100644
--- a/modules/upload/upload.module
+++ b/modules/upload/upload.module
@@ -285,7 +285,7 @@ function _upload_prepare(&$node) {
// Clean up old file previews if a post didn't get the user to this page.
// i.e. the user left the edit page, because they didn't want to upload anything.
if(count($_POST) == 0) {
- if (isset($_SESSION['file_previews']) && is_array($_SESSION['file_previews']) && count($_SESSION['file_previews'])) {
+ if (is_array($_SESSION['file_previews']) && count($_SESSION['file_previews'])) {
foreach ($_SESSION['file_previews'] as $fid => $file) {
file_delete($file->filepath);
}
@@ -321,7 +321,7 @@ function _upload_prepare(&$node) {
}
// Attach file previews to node object.
- if (isset($_SESSION['file_previews']) && is_array($_SESSION['file_previews']) && count($_SESSION['file_previews'])) {
+ if (is_array($_SESSION['file_previews']) && count($_SESSION['file_previews'])) {
foreach ($_SESSION['file_previews'] as $fid => $file) {
if ($user->uid != 1) {
// Here something.php.pps becomes something.php_.pps