diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-09-20 12:40:21 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-09-20 12:40:21 +0200 |
commit | 944e9b8c69c4b78f7afbc6153d35cd50da060b09 (patch) | |
tree | 51124d722e315cb8a918212c189406a651137352 /lib/public | |
parent | 1a60aa2b6a15ae68a2a6998a72580c171b88f719 (diff) | |
download | nextcloud-server-944e9b8c69c4b78f7afbc6153d35cd50da060b09.tar.gz nextcloud-server-944e9b8c69c4b78f7afbc6153d35cd50da060b09.zip |
make sure that both $permissions and $oldPermissions have the same type
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/share.php | 2 |
1 files changed, 1 insertions, 1 deletions
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']; } } |