diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-02-13 22:35:48 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-02-13 22:35:48 +0100 |
commit | 7208abf6184ddb1f5628c4665a848d5f1e04622b (patch) | |
tree | 0481c66677138c667691688872dcda8b8fe8bf51 /lib/response.php | |
parent | e084386770167945b77559ca3d291b6cad39acf6 (diff) | |
download | nextcloud-server-7208abf6184ddb1f5628c4665a848d5f1e04622b.tar.gz nextcloud-server-7208abf6184ddb1f5628c4665a848d5f1e04622b.zip |
OC_Response: fix var name bugs
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) { |