scrutinizer fix

This commit is contained in:
Andreas Gohr 2020-11-19 15:34:02 +01:00
parent 01648efd47
commit e71d33ca86
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ function sendFile($file, $mime, $dl, $cache, $public = false, $orig = null, $csp
header("Content-Type: $mime");
// send security policy if given
if ($csp) dokuwiki\HTTP\Headers::contentSecurityPolicy($csp);
if (!empty($csp)) dokuwiki\HTTP\Headers::contentSecurityPolicy($csp);
// calculate cache times
if($cache == -1) {