diff options
Diffstat (limited to 'lib/response.php')
-rw-r--r-- | lib/response.php | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |