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:
authorBjoern Schiessle <schiessle@owncloud.com>2014-08-13 19:02:51 +0400
committerBjoern Schiessle <schiessle@owncloud.com>2014-08-14 19:45:18 +0400
commit4c6c22c4e3c5dd6dbb524548ce8b1e97fc7bcc7f (patch)
treed181b34c6b3c3d917079eb5ff1537d55878c70ce /lib/private/share
parent35c133143a84a05dc690ef3ce88a1e9c90590c32 (diff)
we need the recipient as a additional parameter to know for which share the notification was send
Diffstat (limited to 'lib/private/share')
-rw-r--r--lib/private/share/share.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index daed42440d7..22e354e515d 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);