diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-06-12 12:21:11 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-06-12 12:21:11 +0200 |
commit | c78a90fd54c790a21c9ba4d8dcf86a68ebef0edd (patch) | |
tree | 1cc4c2b39fceff037c3d199b7f3ff0e72eeeb2c8 /apps/files_encryption/hooks | |
parent | 3ec6b19cdf6b1774d359c10f6cd7f74b5f376d18 (diff) | |
download | nextcloud-server-c78a90fd54c790a21c9ba4d8dcf86a68ebef0edd.tar.gz nextcloud-server-c78a90fd54c790a21c9ba4d8dcf86a68ebef0edd.zip |
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.php | 5 |
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) {
|