From fd5c01a1c14f396bb63b3e2dce7dab2548a1cefa Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Sun, 6 Jan 2008 20:04:12 +0000 Subject: Fixed a bug in the upload library when allowed_files wasn't defined. --- system/libraries/Upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/libraries') diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php index f804dcec8..33ee94773 100644 --- a/system/libraries/Upload.php +++ b/system/libraries/Upload.php @@ -512,7 +512,7 @@ class CI_Upload { */ 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; -- cgit v1.2.3-24-g4f1b