Skip to content

Commit

Permalink
Oops
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Sep 11, 2023
1 parent c81c278 commit 7a6e6b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mimetype.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static function list_description($types) {
* @return ?string */
static function list_accept($types) {
$mta = [];
foreach ($types as $mt) {
foreach ($types ?? [] as $mt) {
if ($mt->mimetype === self::BIN_TYPE
|| ($mt->flags & self::FLAG_ZIPLIKE) !== 0) {
return null;
Expand Down

0 comments on commit 7a6e6b2

Please sign in to comment.