fix PHP 8.0 TypeError: ZipArchive::setCommentName(): Argument #2 ($comment) must be of type string, array given

This commit is contained in:
Ralf Becker 2021-11-13 17:01:21 +01:00
parent 310d430142
commit 26a8d40c5f

View File

@ -1482,7 +1482,7 @@ class Vfs extends Vfs\Base
$comment = self::find_prop($props,'comment');
if($comment)
{
$zip->setCommentName($_name, $comment);
$zip->setCommentName($_name, $comment['val']);
}
}
unset($props);