make sure that both $permissions and $oldPermissions have the same type
This commit is contained in:
parent
1a60aa2b6a
commit
944e9b8c69
1 changed files with 1 additions and 1 deletions
|
@ -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'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue