From: Bart Visscher Date: Mon, 13 Feb 2012 21:35:48 +0000 (+0100) Subject: OC_Response: fix var name bugs X-Git-Tag: v4.0.0beta~71^2~5^2~4^2~2^2~19 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7208abf6184ddb1f5628c4665a848d5f1e04622b;p=nextcloud-server.git OC_Response: fix var name bugs --- diff --git a/lib/response.php b/lib/response.php index 7733168b5b9..f0d1aaab530 100644 --- a/lib/response.php +++ b/lib/response.php @@ -46,12 +46,12 @@ class OC_Response { if (is_string($expires) && $expires[0] == 'P') { $interval = $expires; $expires = new DateTime('now'); - $expires->add(new DateInterval(expires)); + $expires->add(new DateInterval($interval)); } if ($expires instanceof DateTime) { $expires = $expires->format(DateTime::RFC2822); } - header('Expires: '.expires); + header('Expires: '.$expires); } static public function setETagHeader($etag) {