Merge pull request #9512 from libasys/patch-2

Fix use Sharing Api with calendar
This commit is contained in:
Lukas Reschke 2014-09-09 23:58:24 +02:00
commit fa096217b1
1 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
if ($shareType === OCP\Share::SHARE_TYPE_LINK && $shareWith == '') {
$shareWith = null;
}
$itemSourceName=(isset($_POST['itemSourceName'])) ? $_POST['itemSourceName']:'';
$token = OCP\Share::shareItem(
$_POST['itemType'],