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:
authorDaniel Hansson <enoch85@gmail.com>2014-07-09 16:40:05 +0400
committerBjoern Schiessle <schiessle@owncloud.com>2014-07-14 14:59:07 +0400
commit1a01debe684e1beb10501409ec49b091847b4879 (patch)
tree4952954e625c31491d9b445510ebbae27c64ff35 /lib/private/share
parent1cc8be07018ec02cbc534a86f2cbb1b6a7326f97 (diff)
Fix for #9422
Diffstat (limited to 'lib/private/share')
-rw-r--r--lib/private/share/share.php25
1 files changed, 11 insertions, 14 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index d356d6037ff..691a2053a82 100644
--- a/lib/private/share/share.php
+++ b/lib/private/share/share.php
@@ -946,22 +946,19 @@ class Share extends \OC\Share\Constants {
$query->bindValue(4, $user);
$query->bindValue(5, \OCP\Share::SHARE_TYPE_LINK);
- $result = $query->execute();
-
- if ($result === 1) {
- \OC_Hook::emit('OCP\Share', 'post_set_expiration_date', array(
- 'itemType' => $itemType,
- 'itemSource' => $itemSource,
- 'date' => $date,
- 'uidOwner' => $user
- ));
- } else {
- \OCP\Util::writeLog('sharing', "Couldn't set expire date'", \OCP\Util::ERROR);
- }
+ $query->execute();
- return ($result === 1) ? true : false;
- }
+ \OC_Hook::emit('OCP\Share', 'post_set_expiration_date', array(
+ 'itemType' => $itemType,
+ 'itemSource' => $itemSource,
+ 'date' => $date,
+ 'uidOwner' => $user
+ ));
+
+ return true;
+ }
+
/**
* Checks whether a share has expired, calls unshareItem() if yes.
* @param array $item Share data (usually database row)