summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/templates/invalid_private_key.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_encryption/templates/invalid_private_key.php')
-rw-r--r--apps/files_encryption/templates/invalid_private_key.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_encryption/templates/invalid_private_key.php b/apps/files_encryption/templates/invalid_private_key.php
index 9af65f831b4..a3cae60b1da 100644
--- a/apps/files_encryption/templates/invalid_private_key.php
+++ b/apps/files_encryption/templates/invalid_private_key.php
@@ -4,7 +4,7 @@
<?php p($_['message']); ?>
<br/>
- <?php if($_['init']): ?>
+ <?php if($_['errorCode'] === \OCA\Encryption\Crypt::ENCRYPTION_PRIVATE_KEY_NOT_VALID_ERROR): ?>
<?php>p($l->t('Go directly to your ')); ?> <a href="<?php echo $location?>"><?php p($l->t('personal settings')); ?>.</a>
<?php endif; ?>
<br/>