summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/ajax/userrecovery.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_encryption/ajax/userrecovery.php')
-rw-r--r--apps/files_encryption/ajax/userrecovery.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_encryption/ajax/userrecovery.php b/apps/files_encryption/ajax/userrecovery.php
index e49fee83a36..f42a6a4f477 100644
--- a/apps/files_encryption/ajax/userrecovery.php
+++ b/apps/files_encryption/ajax/userrecovery.php
@@ -23,7 +23,7 @@ if (
$util = new \OCA\Files_Encryption\Util($view, $userId);
// Save recovery preference to DB
- $return = $util->setRecoveryForUser($_POST['userEnableRecovery']);
+ $return = $util->setRecoveryForUser((string)$_POST['userEnableRecovery']);
if ($_POST['userEnableRecovery'] === '1') {
$util->addRecoveryKeys();