|
|
@@ -310,10 +310,11 @@ class ShareAPIController extends OCSController { |
|
|
|
|
|
|
|
$shareWithStart = ($hasCircleId ? strrpos($share->getSharedWith(), '[') + 1 : 0); |
|
|
|
$shareWithLength = ($hasCircleId ? -1 : strpos($share->getSharedWith(), ' ')); |
|
|
|
if (is_bool($shareWithLength)) { |
|
|
|
$shareWithLength = -1; |
|
|
|
if ($shareWithLength === false) { |
|
|
|
$result['share_with'] = substr($share->getSharedWith(), $shareWithStart); |
|
|
|
} else { |
|
|
|
$result['share_with'] = substr($share->getSharedWith(), $shareWithStart, $shareWithLength); |
|
|
|
} |
|
|
|
$result['share_with'] = substr($share->getSharedWith(), $shareWithStart, $shareWithLength); |
|
|
|
} elseif ($share->getShareType() === IShare::TYPE_ROOM) { |
|
|
|
$result['share_with'] = $share->getSharedWith(); |
|
|
|
$result['share_with_displayname'] = ''; |