Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-31819: admin: allow install to proceed when multiple admins exist…

… already
  • Loading branch information...
commit 3d1573914ca1ea8940f85314fd9be890afc878f8 1 parent 9772d6d
Tony Levi tlevi authored samhemelryk committed

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 admin/index.php
4 admin/index.php
@@ -297,8 +297,8 @@
297 297 }
298 298 }
299 299
300   - // at this stage there can be only one admin - users may change username, so do not rely on that
301   - $adminuser = get_complete_user_data('id', $CFG->siteadmins);
  300 + // at this stage there can be only one admin unless more were added by install - users may change username, so do not rely on that
  301 + $adminuser = get_complete_user_data('id', reset(explode(',', $CFG->siteadmins)));
302 302
303 303 if ($adminuser->password === 'adminsetuppending') {
304 304 // prevent installation hijacking

0 comments on commit 3d15739

Please sign in to comment.
Something went wrong with that request. Please try again.