Skip to content

Commit

Permalink
fix PHP 8 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
aheinze committed May 17, 2021
1 parent 2f1595e commit 30f090d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/Cockpit/module/assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
return ['uploaded' => $uploaded, 'failed' => $failed, 'assets' => $assets];
},

'updateAssetFile' => function($param = 'file', $asset) {
'updateAssetFile' => function($param = 'file', $asset = null) {

$allowed = $this->getGroupVar('assets.allowed_uploads', $this->app->retrieve('allowed_uploads', '*'));
$allowed = $allowed == '*' ? true : str_replace([' ', ','], ['', '|'], preg_quote(is_array($allowed) ? implode(',', $allowed) : $allowed));
Expand Down

0 comments on commit 30f090d

Please sign in to comment.