diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-08-13 17:02:51 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-08-13 17:02:51 +0200 |
commit | d9f35d8c151801c243efd1353457f74aba75d38a (patch) | |
tree | ce383786d704ec6e6d40471be98f77c5784d8536 /lib/private/share/share.php | |
parent | f282a5cff00d2e7ecbfaa0d93d7ab0bf30921701 (diff) | |
download | nextcloud-server-d9f35d8c151801c243efd1353457f74aba75d38a.tar.gz nextcloud-server-d9f35d8c151801c243efd1353457f74aba75d38a.zip |
we need the recipient as a additional parameter to know for which share the notification was send
Diffstat (limited to 'lib/private/share/share.php')
-rw-r--r-- | lib/private/share/share.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php index 646511fd64d..4bf6622c561 100644 --- a/lib/private/share/share.php +++ b/lib/private/share/share.php @@ -820,17 +820,18 @@ class Share extends \OC\Share\Constants { * @param string $itemType * @param string $itemSource * @param int $shareType SHARE_TYPE_USER, SHARE_TYPE_GROUP, or SHARE_TYPE_LINK + * @param string $recipient with whom was the file shared * @param boolean $status */ - public static function setSendMailStatus($itemType, $itemSource, $shareType, $status) { + public static function setSendMailStatus($itemType, $itemSource, $shareType, $recipient, $status) { $status = $status ? 1 : 0; $query = \OC_DB::prepare( 'UPDATE `*PREFIX*share` SET `mail_send` = ? - WHERE `item_type` = ? AND `item_source` = ? AND `share_type` = ?'); + WHERE `item_type` = ? AND `item_source` = ? AND `share_type` = ? AND `share_with` = ?'); - $result = $query->execute(array($status, $itemType, $itemSource, $shareType)); + $result = $query->execute(array($status, $itemType, $itemSource, $shareType, $recipient)); if($result === false) { \OC_Log::write('OCP\Share', 'Couldn\'t set send mail status', \OC_Log::ERROR); |