From 7c8a6248c74873ba6a3f8ca359eb06b2139ca8a0 Mon Sep 17 00:00:00 2001
From: Moon Sungjoon <sumoon@seoulsaram.org>
Date: Mon, 25 Sep 2023 08:33:52 +0900
Subject: [PATCH] action.php: Fix wrong variable assignments

---
 action.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/action.php b/action.php
index 7faa8dc..ff97a57 100644
--- a/action.php
+++ b/action.php
@@ -36,8 +36,8 @@ class action_plugin_oauthgeneric extends Adapter
 
         // type fixes
         if (is_array($user)) $user = array_shift($user);
-        if (is_array($name)) $user = array_shift($name);
-        if (is_array($mail)) $user = array_shift($mail);
+        if (is_array($name)) $name = array_shift($name);
+        if (is_array($mail)) $mail = array_shift($mail);
         if (!is_array($grps)) {
             $grps = explode(',', $grps);
             $grps = array_map('trim', $grps);
-- 
GitLab