Skip to content

Commit 804c0d0

Browse files
committed
Skip an empty list of templates being deployed
See https://www.woltlab.com/community/thread/314496/
1 parent 9c702cb commit 804c0d0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

wcfsetup/install/files/lib/system/package/ACPTemplatesFileHandler.class.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ public function checkFiles(array $files)
8484
*/
8585
public function logFiles(array $files)
8686
{
87+
if ($files === []) {
88+
return;
89+
}
90+
8791
// remove file extension
8892
$files = \array_map(static function (string $file) {
8993
if (\basename($file) !== $file) {

0 commit comments

Comments
 (0)