mirror of
https://github.com/nextcloud/passman.git
synced 2025-01-01 04:51:44 +08:00
Fix "only variables should be passed by reference"
This commit is contained in:
parent
0113217b3c
commit
1048365e95
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue