diff --git a/admin/user.php b/admin/user.php index 8ef2ea16575..9ae4bb7b64a 100644 --- a/admin/user.php +++ b/admin/user.php @@ -280,6 +280,8 @@ $matchstring = implode(", ", $match); print_heading(get_string("nousersmatching", "", $matchstring)); + $table = NULL; + } else { $countries = get_list_of_countries(); @@ -329,27 +331,27 @@ $deletebutton, $confirmbutton); } + } - echo "
"; - echo "
"; - echo ""; - echo ""; - if ($search) { - echo ""; - } - echo "
"; - echo "
"; - print_heading("sesskey\">".get_string("addnewuser").""); + echo "
"; + echo "
"; + echo ""; + echo ""; + if ($search) { + echo ""; + } + echo "
"; + echo "
"; + print_heading("sesskey\">".get_string("addnewuser").""); + if (!empty($table)) { print_table($table); - print_paging_bar($usercount, $page, $perpage, "user.php?sort=$sort&dir=$dir&perpage=$perpage". "&firstinitial=$firstinitial&lastinitial=$lastinitial&search=$search&"); - + print_heading("sesskey\">".get_string("addnewuser").""); } - print_heading("sesskey\">".get_string("addnewuser").""); print_footer(); }