Fix "only variables should be passed by reference"

This commit is contained in:
brantje 2016-10-01 18:04:29 +02:00
parent 0113217b3c
commit 1048365e95
No known key found for this signature in database
GPG key ID: 5FF1D117F918687F

View file

@ -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) {