Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changes to course menu

  • Loading branch information...
commit cfa5d3f2a0c45787381fd49ac6bcfe44b1f6f125 1 parent ccfa208
martin authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 course/lib.php
9 course/lib.php
View
@@ -35,9 +35,14 @@ function print_log_selector_form($course, $selecteduser=0, $selecteddate="today"
if (isadmin()) {
if ($ccc = get_records_sql("SELECT * FROM course ORDER BY fullname")) {
foreach ($ccc as $cc) {
- $courses["$cc->id"] = "$cc->fullname";
+ if ($cc->category) {
+ $courses["$cc->id"] = "$cc->fullname";
+ } else {
+ $courses["$cc->id"] = " $cc->fullname (Site)";
+ }
}
}
+ asort($courses);
}
asort($users);
@@ -73,7 +78,7 @@ function print_log_selector_form($course, $selecteduser=0, $selecteddate="today"
echo "<CENTER>";
echo "<FORM ACTION=log.php METHOD=get>";
if (isadmin()) {
- choose_from_menu ($courses, "id", $course->id, "All courses");
+ choose_from_menu ($courses, "id", $course->id);
} else {
echo "<INPUT TYPE=hidden NAME=id VALUE=\"$course->id\">";
}
Please sign in to comment.
Something went wrong with that request. Please try again.