Commit 1b1567a1 authored by Penom Nom's avatar Penom Nom
Browse files

corrected error while updating ng6_admin user

parent daac017d
...@@ -2420,6 +2420,12 @@ class tx_nG6_db { ...@@ -2420,6 +2420,12 @@ class tx_nG6_db {
while($res_row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) { while($res_row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
$usergroup = $res_row['usergroup']; $usergroup = $res_row['usergroup'];
} }
// remove ng6 admin group if present
$ex = explode(',' , $usergroup);
if(($key = array_search('1', $ex)) !== false) {
unset($ex[$key]);
}
$usergroup = $ex[0];
return $usergroup; return $usergroup;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment