summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Upload.php2
1 files changed, 1 insertions, 1 deletions
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;