Merge pull request #20152 from owncloud/LukasReschke-patch-1
Remove invalid type-cast
This commit is contained in:
commit
d7efb6d8b5
1 changed files with 4 additions and 4 deletions
|
@ -360,8 +360,8 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
|
|||
}
|
||||
|
||||
if ((!isset($_GET['itemShares'])
|
||||
|| !is_array((string)$_GET['itemShares'][OCP\Share::SHARE_TYPE_USER])
|
||||
|| !in_array($uid, (string)$_GET['itemShares'][OCP\Share::SHARE_TYPE_USER]))
|
||||
|| !is_array($_GET['itemShares'][OCP\Share::SHARE_TYPE_USER])
|
||||
|| !in_array($uid, $_GET['itemShares'][OCP\Share::SHARE_TYPE_USER]))
|
||||
&& $uid != OC_User::getUser()) {
|
||||
$shareWith[] = array(
|
||||
'label' => $displayName,
|
||||
|
@ -386,8 +386,8 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
|
|||
if ($count < $request_limit) {
|
||||
if (!isset($_GET['itemShares'])
|
||||
|| !isset($_GET['itemShares'][OCP\Share::SHARE_TYPE_GROUP])
|
||||
|| !is_array((string)$_GET['itemShares'][OCP\Share::SHARE_TYPE_GROUP])
|
||||
|| !in_array($group, (string)$_GET['itemShares'][OCP\Share::SHARE_TYPE_GROUP])) {
|
||||
|| !is_array($_GET['itemShares'][OCP\Share::SHARE_TYPE_GROUP])
|
||||
|| !in_array($group, $_GET['itemShares'][OCP\Share::SHARE_TYPE_GROUP])) {
|
||||
$shareWith[] = array(
|
||||
'label' => $group,
|
||||
'value' => array(
|
||||
|
|
Loading…
Reference in a new issue