From 2334e9083cc2e404b9bddc46db9586fef03a9575 Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 29 May 2003 03:09:37 +0000 Subject: [PATCH] Minor bug fixes --- admin/admin.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/admin.php b/admin/admin.php index e393c180f2..7b131087fd 100644 --- a/admin/admin.php +++ b/admin/admin.php @@ -54,16 +54,16 @@ $searchstring = $strsearch; } - print_header("$site->shortname: $course->shortname: $strassignadmins", + print_header("$site->shortname: $strassignadmins", "$site->fullname", "$stradministration -> - $strassignadmins", ""); + $strassignadmins", ""); /// Get all existing admins $admins = get_admins(); /// Add an admin if one is specified - if ($_REQUEST['add']) { + if ($add) { $user = @get_record("user", "id", $_REQUEST['add']) or error("That account (id = {$_REQUEST['add']}) doesn't exist"); @@ -81,7 +81,7 @@ } /// Remove an admin if one is specified. - if ($_REQUEST['remove']) { + if ($remove) { $user = @get_record("user", "id", $_REQUEST['remove']) or error("That account (id = {$_REQUEST['remove']}) doesn't exist"); -- 2.39.5