summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-10-29 16:44:31 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-29 16:44:31 +0100
commitd7efb6d8b54ba65f2f8c22e97ca3a3057276b300 (patch)
tree19539a10f51855e4ab844cbd224f1f0f9002c084 /core
parent774d069ff08e21ecdac1fceec80e162f5917105e (diff)
parenta6f180f24e850dff7c0f5541c814b63d5007df40 (diff)
downloadnextcloud-server-d7efb6d8b54ba65f2f8c22e97ca3a3057276b300.tar.gz
nextcloud-server-d7efb6d8b54ba65f2f8c22e97ca3a3057276b300.zip
Merge pull request #20152 from owncloud/LukasReschke-patch-1
Remove invalid type-cast
Diffstat (limited to 'core')
-rw-r--r--core/ajax/share.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php
index 68afd7b4e84..fd42a94de6e 100644
--- a/core/ajax/share.php
+++ b/core/ajax/share.php
@@ -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(