chrisberthe/CodeIgniter — comment on commit 7338798d617732d1448d1ec9b0d5ac8c60213930
File:  line 0
By qrool:

Hi, I will suggest to:
- remove #959 global $mimes;
- update #961 with: if (! is_array($this->mimes) OR !isset($this->mimes[0]))

please remember that class CI_Upload has a property $mimes defined by default with the property type array(), also I have found that in some linux boxes counting emtpy array can gives you number 1(true). that is why instead counting whole array I am checking if the array as at least one element by isset($this->mimes[0])

Thanks