commit | fd5c01a1c14f396bb63b3e2dce7dab2548a1cefa | [log] [tgz] |
---|---|---|
author | Derek Allard <derek.allard@ellislab.com> | Sun Jan 06 20:04:12 2008 +0000 |
committer | Derek Allard <derek.allard@ellislab.com> | Sun Jan 06 20:04:12 2008 +0000 |
tree | 85e6af392fedd039392081f0dc222d8122a5e812 | |
parent | a070db9c481346b4f9884bd32c3d1445a795f7a8 [diff] [blame] |
Fixed a bug in the upload library when allowed_files wasn't defined.
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php index f804dce..33ee947 100644 --- a/system/libraries/Upload.php +++ b/system/libraries/Upload.php
@@ -512,7 +512,7 @@ */ function is_allowed_filetype() { - if (count($this->allowed_types) == 0) + if (count($this->allowed_types) == 0 || ! is_array($this->allowed_types)) { $this->set_error('upload_no_file_types'); return FALSE;