diff options
author | Andreas Fischer <bantu@owncloud.com> | 2013-09-23 16:48:02 +0200 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2013-11-03 12:33:34 +0100 |
commit | 779b87d46aff59205cebe058bf66cd5b3acb22e4 (patch) | |
tree | fc82bb6530d9a25656b2ae1f47c852d8f966db03 /lib/public/share.php | |
parent | ebf169479540506b36c9fde79a08f4a60d3c5e1d (diff) | |
download | nextcloud-server-779b87d46aff59205cebe058bf66cd5b3acb22e4.tar.gz nextcloud-server-779b87d46aff59205cebe058bf66cd5b3acb22e4.zip |
Use unshareItem() when unsharing expired shares.
Diffstat (limited to 'lib/public/share.php')
-rw-r--r-- | lib/public/share.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/public/share.php b/lib/public/share.php index 2a127976469..48dedd07c0c 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -350,7 +350,7 @@ class Share { $now = new \DateTime(); $expirationDate = new \DateTime($row['expiration'], new \DateTimeZone('UTC')); if ($now > $expirationDate) { - self::delete($row['id']); + self::unshareItem($row); return false; } } @@ -1211,7 +1211,7 @@ class Share { if (isset($row['expiration'])) { $time = new \DateTime(); if ($row['expiration'] < date('Y-m-d H:i', $time->format('U') - $time->getOffset())) { - self::delete($row['id']); + self::unshareItem($row); continue; } } |