diff options
author | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-03-21 11:44:46 +0000 |
---|---|---|
committer | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-03-21 11:44:46 +0000 |
commit | 26612e9cbdf17902662fb345f7bdd9fe3b8accc0 (patch) | |
tree | af8a5c48a6fbb235f84ec345eb4c256f545433c5 /modules/upload | |
parent | d12faf546d25dbae58654b8e52c403b00a2f8bcc (diff) | |
download | brdo-26612e9cbdf17902662fb345f7bdd9fe3b8accc0.tar.gz brdo-26612e9cbdf17902662fb345f7bdd9fe3b8accc0.tar.bz2 |
#54298, Only user = 1 can upload files, patch by dopry
Diffstat (limited to 'modules/upload')
-rw-r--r-- | modules/upload/upload.module | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/upload/upload.module b/modules/upload/upload.module index 5c50bc8a1..a5f624ab6 100644 --- a/modules/upload/upload.module +++ b/modules/upload/upload.module @@ -249,6 +249,8 @@ function _upload_validate(&$node) { if (is_array($node->files)) { // Update existing files with form data. foreach($node->files as $fid => $file) { + // Convert file to object for compatability + $file = (object)$file; // Validate new uploads. if (strpos($fid, 'upload') !== false && !$file->remove) { |