remotes/origin/fix-10825
Daniel Hansson 11 years ago
parent 404ac8bcd3
commit 851c1f87d6
  1. 23
      lib/private/share/share.php

@ -946,21 +946,18 @@ class Share extends \OC\Share\Constants {
$query->bindValue(4, $user);
$query->bindValue(5, \OCP\Share::SHARE_TYPE_LINK);
$result = $query->execute();
$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);
}
\OC_Hook::emit('OCP\Share', 'post_set_expiration_date', array(
'itemType' => $itemType,
'itemSource' => $itemSource,
'date' => $date,
'uidOwner' => $user
));
return ($result === 1) ? true : false;
}
return true;
}
/**
* Checks whether a share has expired, calls unshareItem() if yes.

Loading…
Cancel
Save