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

View file

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