User tests: Successful: Unsuccessful:
Pull Request for Issue # .
Basically, check that we actually got a list of files before trying to work on it as an array.
JFolder::files() may return false in some cases. So we need to check that before using its response as an array.
To expose the error, I guess you need to install an extension whose manifest file specifies a schemapath which does not exist. So, yes, this bug only really shows up when the extension to be installed has something wrong with it. What will happen is that JFolder::files() will return false which is passed to str_replace. I'm not sure what gets returned at that point but it's definitely not an array as expected. That return value will be passed to usort, count, foreach, and end as if it were an array. These will generate warnings.
After applying this fix, the function should exit when JFolder::files() return false or empty array. No warnings.
Nope.
| Category | ⇒ | Libraries | 
| Status | New | ⇒ | Pending | 
| Labels | Added: 
? | ||
 
                 
                @okonomiyaki3000 can you please solve conflicting Files?
 
                I have tested this item 
| Status | Pending | ⇒ | Ready to Commit | 
 
                RTC
| Status | Ready to Commit | ⇒ | Fixed in Code Base | 
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-04-29 14:50:57 | 
| Closed_By | ⇒ | mbabker | |
| Labels | Added: 
? | ||
I have tested this item✅  successfully on 69223ed
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/11715.