fix wrong http status code set, when file not found or any other error

This commit is contained in:
ralf 2022-12-06 10:44:41 +01:00
parent f325e15108
commit dd9a0dd788

View File

@ -32,7 +32,7 @@ $GLOBALS['egw']->session->commit_session();
if (!read_thumbnail(get_srcfile()))
{
header('404 Not found');
http_response_code(404); // Not found
}
/**
@ -620,4 +620,4 @@ function gdVersion($user_ver = 0)
$info = stristr(ob_get_clean(), 'gd version');
if (preg_match('/\d/', $info, $match)) $gd_ver = $match[0];
return $match[0];
}
}