Avoid More Warnings
This commit is contained in:
parent
09918ad666
commit
1e649ab8af
1 changed files with 5 additions and 3 deletions
|
@ -37,9 +37,11 @@ if (isset($_SESSION['files'])
|
|||
$files = $_SESSION['files'];
|
||||
} else {
|
||||
$tmpdirs = glob(Helpers::end_dir($imagedir.$dir).'*' , GLOB_ONLYDIR);
|
||||
foreach ($tmpdirs as $tmpdir)
|
||||
$dirs[] = basename($tmpdir);
|
||||
$rmdirs = $dirs;
|
||||
if (!empty($tmpdirs)) {
|
||||
foreach ($tmpdirs as $tmpdir)
|
||||
$dirs[] = basename($tmpdir);
|
||||
$rmdirs = $dirs;
|
||||
}
|
||||
$rmdirs[] = '.';
|
||||
$rmdirs[] = '..';
|
||||
$files = array_diff(scandir($imagedir.$dir, SCANDIR_SORT_DESCENDING), $rmdirs);
|
||||
|
|
Loading…
Reference in a new issue