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 029664ac1d
commit b18d1da363

View File

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