diff --git a/admin/controllers/edit-user.php b/admin/controllers/edit-user.php index 3dc6b563..5032a597 100644 --- a/admin/controllers/edit-user.php +++ b/admin/controllers/edit-user.php @@ -43,6 +43,11 @@ function deleteUser($args, $deleteContent=false) global $dbPosts; global $Language; + // The user admin cannot be deleted. + if($args['username']=='admin') { + return false; + } + if($deleteContent) { $dbPosts->deletePostsByUser($args['username']); } diff --git a/admin/themes/default/index.php b/admin/themes/default/index.php index 06b23a0c..85316ab8 100644 --- a/admin/themes/default/index.php +++ b/admin/themes/default/index.php @@ -15,12 +15,14 @@ - + + + + +