aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/users.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index 92268858c..630be8d80 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -1251,9 +1251,13 @@
}
}
+ global $registering_admin;
if (!$admin) {
$user->admin = true;
datalist_set('admin_registered',1);
+ $registering_admin = true;
+ } else {
+ $registering_admin = false;
}
// Turn on email notifications by default