From 7bfc16c24922f005a078a9d61926ca1de9d817d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Ruz=CC=8Cevic=CC=81?= Date: Fri, 27 Oct 2023 23:45:19 +0200 Subject: [PATCH] fixing missing frontend libs private dir --- src/Blocks/AbstractBlocksCli.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Blocks/AbstractBlocksCli.php b/src/Blocks/AbstractBlocksCli.php index 6e2bbdbaa..a1c901d45 100644 --- a/src/Blocks/AbstractBlocksCli.php +++ b/src/Blocks/AbstractBlocksCli.php @@ -67,7 +67,7 @@ protected function moveItems(array $args, string $source, string $destination, s $sourceItems = \array_fill_keys(\array_values($sourceItems), $source); $sourceItemsPrivate = []; - if ($sourcePrivate) { + if (\is_dir($sourcePrivate)) { $sourceItemsPrivate = \array_diff(\scandir($sourcePrivate) ?: [], ['..', '.']); // phpcs:ignore WordPress.PHP.DisallowShortTernary.Found $sourceItemsPrivate = \array_fill_keys(\array_values($sourceItemsPrivate), $sourcePrivate); }