Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-06-12 14:21:11 +0400
committerBjörn Schießle <schiessle@owncloud.com>2013-06-12 14:21:11 +0400
commitc78a90fd54c790a21c9ba4d8dcf86a68ebef0edd (patch)
tree1cc4c2b39fceff037c3d199b7f3ff0e72eeeb2c8 /apps/files_encryption/hooks
parent3ec6b19cdf6b1774d359c10f6cd7f74b5f376d18 (diff)
use number of manipulated rows as idicator if it was possible to enter the migration mode
Diffstat (limited to 'apps/files_encryption/hooks')
-rw-r--r--apps/files_encryption/hooks/hooks.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_encryption/hooks/hooks.php b/apps/files_encryption/hooks/hooks.php
index 9f36393d591..7e68f476a7f 100644
--- a/apps/files_encryption/hooks/hooks.php
+++ b/apps/files_encryption/hooks/hooks.php
@@ -67,7 +67,10 @@ class Hooks {
$session->setPrivateKey($privateKey, $params['uid']);
// Check if first-run file migration has already been performed
- $ready = $util->beginMigration();
+ $ready = false;
+ if ($util->getMigrationStatus() === Util::MIGRATION_OPEN) {
+ $ready = $util->beginMigration();
+ }
// If migration not yet done
if ($ready) {