Anything but true means it failed

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-10-10 12:54:35 +02:00 committed by Bjoern Schiessle
parent 0f3ba9444e
commit 5080080a36
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ class ChangeKeyStorageRoot extends Command {
'ownCloud will detect this folder as key storage root only if this file exists'
);
if ($result === false) {
if ($result !== true) {
throw new \Exception("Can't write to new root folder. Please check the permissions and try again");
}