summaryrefslogtreecommitdiffstats
path: root/apps/encryption/controller
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-04-17 14:25:57 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-04-17 14:25:57 +0200
commitd9f23c0578c37bc9c61a7e2f8196027d6841fd75 (patch)
treeb9ae6978b6c3e9f18b4481c850700c596d182f45 /apps/encryption/controller
parent295839930ae829cecfca2bfbec3c1ea75c07db4e (diff)
downloadnextcloud-server-d9f23c0578c37bc9c61a7e2f8196027d6841fd75.tar.gz
nextcloud-server-d9f23c0578c37bc9c61a7e2f8196027d6841fd75.zip
fixing undefined variable
Diffstat (limited to 'apps/encryption/controller')
-rw-r--r--apps/encryption/controller/statuscontroller.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/encryption/controller/statuscontroller.php b/apps/encryption/controller/statuscontroller.php
index fc06d7f86a0..d29cca03505 100644
--- a/apps/encryption/controller/statuscontroller.php
+++ b/apps/encryption/controller/statuscontroller.php
@@ -59,30 +59,30 @@ class StatusController extends Controller {
*/
public function getStatus() {
+ $status = 'error';
+ $message = '';
switch( $this->session->getStatus()) {
case Session::INIT_EXECUTED:
$status = 'success';
$message = (string)$this->l->t(
'Invalid private key for Encryption App. Please update your private'
. ' key password in your personal settings to recover access to your'
- . ' encrypted files.', array('app' => 'encryption'));
+ . ' encrypted files.');
break;
case Session::NOT_INITIALIZED:
$status = 'success';
$message = (string)$this->l->t(
'Encryption App is enabled but your keys are not initialized,'
- . ' please log-out and log-in again', array('app' => 'encryption'));
+ . ' please log-out and log-in again');
break;
- default:
- $status = 'error';
}
return new DataResponse(
- array(
+ [
'status' => $status,
- 'data' => array(
- 'message' => $message)
- )
+ 'data' => [
+ 'message' => $message]
+ ]
);
}