aboutsummaryrefslogtreecommitdiffstats
path: root/admin/user/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/user/index.php')
-rw-r--r--admin/user/index.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/admin/user/index.php b/admin/user/index.php
index 6513311..dce21db 100644
--- a/admin/user/index.php
+++ b/admin/user/index.php
@@ -27,6 +27,13 @@ $lastSite = ceil($count / $site_size);
$currentSite = HTTP::GET('site') ?? 1;
$currentSite = intval($currentSite);
+#===============================================================================
+# Redirect to user create form if no user exists
+#===============================================================================
+if(!$count) {
+ HTTP::redirect(Application::getAdminURL('user/insert.php'));
+}
+
if($currentSite < 1 OR ($currentSite > $lastSite AND $lastSite > 0)) {
Application::error404();
}