Skip to content
Snippets Groups Projects
Commit 944e9b8c authored by Björn Schießle's avatar Björn Schießle
Browse files

make sure that both $permissions and $oldPermissions have the same type

parent 1a60aa2b
No related branches found
No related tags found
No related merge requests found
...@@ -463,7 +463,7 @@ class Share { ...@@ -463,7 +463,7 @@ class Share {
} else { } else {
// reuse the already set password, but only if we change permissions // reuse the already set password, but only if we change permissions
// otherwise the user disabled the password protection // otherwise the user disabled the password protection
if ($checkExists && (int)$permissions !== $oldPermissions) { if ($checkExists && (int)$permissions !== (int)$oldPermissions) {
$shareWith = $checkExists['share_with']; $shareWith = $checkExists['share_with'];
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment