From: Bjoern Schiessle Date: Fri, 20 Sep 2013 10:40:21 +0000 (+0200) Subject: make sure that both $permissions and $oldPermissions have the same type X-Git-Tag: v6.0.0alpha2~149^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=944e9b8c69c4b78f7afbc6153d35cd50da060b09;p=nextcloud-server.git make sure that both $permissions and $oldPermissions have the same type --- diff --git a/lib/public/share.php b/lib/public/share.php index 91c5c477c8d..91b0ef6dc69 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -463,7 +463,7 @@ class Share { } else { // reuse the already set password, but only if we change permissions // otherwise the user disabled the password protection - if ($checkExists && (int)$permissions !== $oldPermissions) { + if ($checkExists && (int)$permissions !== (int)$oldPermissions) { $shareWith = $checkExists['share_with']; } }