Skip to content

Commit

Permalink
propose fix for bcit-ci#6122
Browse files Browse the repository at this point in the history
propose fix for bcit-ci#6122 unsure if this is a valid fix, my code (while using this function) doesn't actually use this function.

$filedata will return bool(false) on
 "/var/www/html/project/application/cache/index.html"

Causing the error posted in the issue.
  • Loading branch information
svennd authored Mar 27, 2022
1 parent 87f9ac6 commit 6b6568d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions system/helpers/file_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,11 @@ function get_dir_file_info($source_dir, $top_level_only = TRUE, $_recursion = FA
elseif ($file[0] !== '.')
{
$filedata = get_dir_file_info($source_dir.$file);
$filedata['relative_path'] = $relative_path;
$_filedata[] = $filedata;
if ($filedata)
{
$filedata['relative_path'] = $relative_path;
$_filedata[] = $filedata;
}
}
}

Expand Down

0 comments on commit 6b6568d

Please sign in to comment.