mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Added check for empty array, removes warning. Closes #5012.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7299 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
4b1de6ac0e
commit
551cf75bbc
1 changed files with 3 additions and 2 deletions
|
@ -525,12 +525,13 @@ if (!function_exists('clone')) {
|
|||
$files = glob($cache);
|
||||
|
||||
$cache = CACHE . $type . DS . '*' . $params . '_*' . $ext;
|
||||
$files = array_merge($files, glob($cache));
|
||||
|
||||
if ($files === false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$files = array_merge($files, glob($cache));
|
||||
|
||||
foreach ($files as $file) {
|
||||
if (is_file($file)) {
|
||||
@unlink($file);
|
||||
|
|
Loading…
Add table
Reference in a new issue