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

This commit is contained in:
Bjoern Schiessle 2013-09-20 12:40:21 +02:00
parent 1a60aa2b6a
commit 944e9b8c69
1 changed files with 1 additions and 1 deletions

View File

@ -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'];
}
}