From: Bart Visscher Date: Fri, 17 Feb 2012 20:35:31 +0000 (+0100) Subject: Fix parameter of OC_Response::sendFile X-Git-Tag: v4.0.0beta~201^2~53 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f54c767d72b8380c181c218f378b25e5fbf75ce7;p=nextcloud-server.git Fix parameter of OC_Response::sendFile --- diff --git a/lib/response.php b/lib/response.php index 3765f509c18..9edae3603b2 100644 --- a/lib/response.php +++ b/lib/response.php @@ -146,7 +146,7 @@ class OC_Response { * @brief Send file as response, checking and setting caching headers * @param $filepath of file to send */ - static public function sendFile($filepath=null) { + static public function sendFile($filepath) { $fp = fopen($filepath, 'rb'); if ($fp) { self::setLastModifiedHeader(filemtime($filepath));