git subrepo commit (merge) mailcow/src/mailcow-dockerized

subrepo: subdir:   "mailcow/src/mailcow-dockerized"
  merged:   "02ae5285"
upstream: origin:   "https://github.com/mailcow/mailcow-dockerized.git"
  branch:   "master"
  commit:   "649a5c01"
git-subrepo: version:  "0.4.3"
  origin:   "???"
  commit:   "???"
Change-Id: I870ad468fba026cc5abf3c5699ed1e12ff28b32b
diff --git a/mailcow/src/mailcow-dockerized/data/web/inc/functions.oauth2.inc.php b/mailcow/src/mailcow-dockerized/data/web/inc/functions.oauth2.inc.php
index 7bc7dea..7dc5602 100644
--- a/mailcow/src/mailcow-dockerized/data/web/inc/functions.oauth2.inc.php
+++ b/mailcow/src/mailcow-dockerized/data/web/inc/functions.oauth2.inc.php
@@ -1,16 +1,16 @@
 <?php

 function oauth2($_action, $_type, $_data = null) {

-	global $pdo;

-	global $redis;

-	global $lang;

-	if ($_SESSION['mailcow_cc_role'] != "admin") {

-		$_SESSION['return'][] = array(

-			'type' => 'danger',

+  global $pdo;

+  global $redis;

+  global $lang;

+  if ($_SESSION['mailcow_cc_role'] != "admin") {

+    $_SESSION['return'][] = array(

+      'type' => 'danger',

       'log' => array(__FUNCTION__, $_action, $_type, $_data),

-			'msg' => 'access_denied'

-		);

-		return false;

-	}

+      'msg' => 'access_denied'

+    );

+    return false;

+  }

   switch ($_action) {

     case 'add':

       switch ($_type) {

@@ -188,7 +188,7 @@
           $_SESSION['return'][] = array(

             'type' => 'success',

             'log' => array(__FUNCTION__, $_action, $_type, $_data),

-            'msg' => sprintf($lang['success']['items_deleted'], implode(', ', $access_tokens))

+            'msg' => sprintf($lang['success']['items_deleted'], implode(', ', (array)$access_tokens))

           );

         break;

         case 'refresh_token':

@@ -210,7 +210,7 @@
           $_SESSION['return'][] = array(

             'type' => 'success',

             'log' => array(__FUNCTION__, $_action, $_type, $_data),

-            'msg' => sprintf($lang['success']['items_deleted'], implode(', ', $refresh_tokens))

+            'msg' => sprintf($lang['success']['items_deleted'], implode(', ', (array)$refresh_tokens))

           );

         break;

       }

@@ -239,4 +239,4 @@
       }

     break;

   }

-}
\ No newline at end of file
+}