Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-02-14 01:35:48 +0400
committerBart Visscher <bartv@thisnet.nl>2012-02-14 01:35:48 +0400
commit7208abf6184ddb1f5628c4665a848d5f1e04622b (patch)
tree0481c66677138c667691688872dcda8b8fe8bf51 /lib/response.php
parente084386770167945b77559ca3d291b6cad39acf6 (diff)
OC_Response: fix var name bugs
Diffstat (limited to 'lib/response.php')
-rw-r--r--lib/response.php4
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) {