Bugfix, Folder not found although existent in global module.
This commit is contained in:
parent
8cfe4a8693
commit
a8f493fc34
1 changed files with 7 additions and 0 deletions
|
|
@ -79,6 +79,13 @@ return new class extends Lewp\Module
|
|||
]);
|
||||
// all images in the folder
|
||||
$gallery_filenames = scandir($gallery_folder);
|
||||
// check if folder is empty or not available
|
||||
if (
|
||||
($gallery_filenames === false)
|
||||
|| (sizeof($gallery_filenames) == 2)
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
foreach ($gallery_filenames as $image) {
|
||||
if ($image === '..' || $image === '.') {
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue