From 1048365e95dd1391ceab4a41d46c56b45464fcdb Mon Sep 17 00:00:00 2001 From: brantje Date: Sat, 1 Oct 2016 18:04:29 +0200 Subject: [PATCH] Fix "only variables should be passed by reference" --- lib/Service/CredentialService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Service/CredentialService.php b/lib/Service/CredentialService.php index 9dbf8f33..e30f3d67 100644 --- a/lib/Service/CredentialService.php +++ b/lib/Service/CredentialService.php @@ -45,7 +45,8 @@ class CredentialService { } public function getRandomCredentialByVaultId($vault_id, $user_id) { - return array_pop($this->credentialMapper->getRandomCredentialByVaultId($vault_id, $user_id)); + $credentials = $this->credentialMapper->getRandomCredentialByVaultId($vault_id, $user_id); + return array_pop($credentials); } public function getExpiredCredentials($timestamp) {