Skip to content

Commit

Permalink
UserMapper : correct get authDrivers array
Browse files Browse the repository at this point in the history
  • Loading branch information
JosefDohnal committed Mar 25, 2016
1 parent 988d09a commit 6bc143a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/UserManager/Mapper/UserNetteDatabaseMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,12 @@ public function saveAuthDrivers($item)
*/
private function getAuthDrivers($userId)
{
$roles = $this->database// get roles from table
$authDrivers = $this->database// get roles from table
->table("UsersAuthDrivers")
->select("AuthDriver, AuthID")
->where("UserID", $userId)
->fetchPairs("AuthDriver", "AuthID");
return array_values($roles);
return $authDrivers;
}

/**
Expand Down

0 comments on commit 6bc143a

Please sign in to comment.