Skip to content
Snippets Groups Projects
Commit 4c48c00f authored by Pieter van der Meulen's avatar Pieter van der Meulen
Browse files

Fix: Getting '0' instead of key of the last array index

parent 6c540849
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ if (isset($sources['admin'])) { ...@@ -10,7 +10,7 @@ if (isset($sources['admin'])) {
//if only 1 auth //if only 1 auth
if (count($sources)==1) { if (count($sources)==1) {
$_REQUEST['as'] = key(end($sources)); $_REQUEST['as'] = key($sources);
} }
if (!array_key_exists('as', $_REQUEST)) { if (!array_key_exists('as', $_REQUEST)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment