mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-32094 fix various E_STRICT compatibility problems
This commit is contained in:
parent
0ed6f71232
commit
f20edd5208
27 changed files with 53 additions and 42 deletions
|
@ -307,7 +307,8 @@ if (during_initial_install()) {
|
|||
}
|
||||
|
||||
// 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
|
||||
$adminuser = get_complete_user_data('id', reset(explode(',', $CFG->siteadmins)));
|
||||
$adminids = explode(',', $CFG->siteadmins);
|
||||
$adminuser = get_complete_user_data('id', reset($adminids));
|
||||
|
||||
if ($adminuser->password === 'adminsetuppending') {
|
||||
// prevent installation hijacking
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue