Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Changes to course menu

  • Loading branch information...
commit cfa5d3f2a0c45787381fd49ac6bcfe44b1f6f125 1 parent ccfa208
martin authored

Showing 1 changed file with 7 additions and 2 deletions. Show diff stats Hide diff stats

  1. +7 2 course/lib.php
9 course/lib.php
@@ -35,9 +35,14 @@ function print_log_selector_form($course, $selecteduser=0, $selecteddate="today"
35 35 if (isadmin()) {
36 36 if ($ccc = get_records_sql("SELECT * FROM course ORDER BY fullname")) {
37 37 foreach ($ccc as $cc) {
38   - $courses["$cc->id"] = "$cc->fullname";
  38 + if ($cc->category) {
  39 + $courses["$cc->id"] = "$cc->fullname";
  40 + } else {
  41 + $courses["$cc->id"] = " $cc->fullname (Site)";
  42 + }
39 43 }
40 44 }
  45 + asort($courses);
41 46 }
42 47
43 48 asort($users);
@@ -73,7 +78,7 @@ function print_log_selector_form($course, $selecteduser=0, $selecteddate="today"
73 78 echo "<CENTER>";
74 79 echo "<FORM ACTION=log.php METHOD=get>";
75 80 if (isadmin()) {
76   - choose_from_menu ($courses, "id", $course->id, "All courses");
  81 + choose_from_menu ($courses, "id", $course->id);
77 82 } else {
78 83 echo "<INPUT TYPE=hidden NAME=id VALUE=\"$course->id\">";
79 84 }

0 comments on commit cfa5d3f

Please sign in to comment.
Something went wrong with that request. Please try again.