Skip to content
Snippets Groups Projects
Commit 15351a5a authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fxi firstadmin param must take first active admin

parent f5d76ac0
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,7 @@ if ($key != $conf->global->CRON_KEY)
// If param userlogin is reserved word 'firstadmin'
if ($userlogin == 'firstadmin')
{
$sql='SELECT login from '.MAIN_DB_PREFIX.'user WHERE admin = 1 ORDER BY entity LIMIT 1';
$sql='SELECT login from '.MAIN_DB_PREFIX.'user WHERE admin = 1 and statut = 1 ORDER BY entity LIMIT 1';
$resql=$db->query($sql);
if ($resql)
{
......
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