]> source.dussan.org Git - nextcloud-server.git/commitdiff
make sure that both $permissions and $oldPermissions have the same type
authorBjoern Schiessle <schiessle@owncloud.com>
Fri, 20 Sep 2013 10:40:21 +0000 (12:40 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Fri, 20 Sep 2013 10:40:21 +0000 (12:40 +0200)
lib/public/share.php

index 91c5c477c8dabb654d1fbb40fea7251ed1eb3d07..91b0ef6dc695dd2ee1a436ffddc486c19338e5ab 100644 (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'];
                                        }
                                }