summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/templates/settings-personal.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-05-06 19:20:49 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-06-05 16:54:04 +0200
commiteb29b2984cf81f25df42d59ce1d5c9a9b307763c (patch)
tree7277d43f58f92aa3fd58bb863bf4bbf344f4a71b /apps/files_encryption/templates/settings-personal.php
parent2d83424a29e4dbaeb16856c87378a753b10cdb90 (diff)
downloadnextcloud-server-eb29b2984cf81f25df42d59ce1d5c9a9b307763c.tar.gz
nextcloud-server-eb29b2984cf81f25df42d59ce1d5c9a9b307763c.zip
use oc_preferences instead of oc_encryption to store encyption settings
Diffstat (limited to 'apps/files_encryption/templates/settings-personal.php')
-rw-r--r--apps/files_encryption/templates/settings-personal.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_encryption/templates/settings-personal.php b/apps/files_encryption/templates/settings-personal.php
index 8139ece1950..e9988df3275 100644
--- a/apps/files_encryption/templates/settings-personal.php
+++ b/apps/files_encryption/templates/settings-personal.php
@@ -46,7 +46,7 @@
type='radio'
name='userEnableRecovery'
value='1'
- <?php echo ( $_["recoveryEnabledForUser"] == 1 ? 'checked="checked"' : '' ); ?> />
+ <?php echo ( $_["recoveryEnabledForUser"] ? 'checked="checked"' : '' ); ?> />
<?php p( $l->t( "Enabled" ) ); ?>
<br />
@@ -54,7 +54,7 @@
type='radio'
name='userEnableRecovery'
value='0'
- <?php echo ( $_["recoveryEnabledForUser"] == 0 ? 'checked="checked"' : '' ); ?> />
+ <?php echo ( $_["recoveryEnabledForUser"] === false ? 'checked="checked"' : '' ); ?> />
<?php p( $l->t( "Disabled" ) ); ?>
<div id="recoveryEnabledSuccess"><?php p( $l->t( 'File recovery settings updated' ) ); ?></div>
<div id="recoveryEnabledError"><?php p( $l->t( 'Could not update file recovery' ) ); ?></div>