Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
092663f9
Commit
092663f9
authored
Apr 14, 2014
by
Robert Lyon
Committed by
Gerrit Code Review
Apr 14, 2014
Browse files
Merge "Making check for admin more reliable (Bug #1300741)"
parents
b39a55c3
377b4a1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/auth/lib.php
View file @
092663f9
...
...
@@ -1000,7 +1000,7 @@ function requiredfields_submit(Pieform $form, $values) {
if
(
$field
==
'email'
)
{
$email
=
$values
[
'email'
];
// Need to update the admin email on installation
if
(
$USER
->
get
(
'
id'
)
==
'1'
)
{
if
(
$USER
->
get
(
'
admin'
)
)
{
$oldemail
=
get_field
(
'usr'
,
'email'
,
'id'
,
$USER
->
get
(
'id'
));
if
(
$oldemail
==
'admin@example.org'
)
{
// we are dealing with the dummy email that is set on install
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment