Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-47778

PHP warning when visiting tool_monitor page directly.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.8
    • 2.8
    • Reports
    • MOODLE_28_STABLE
    • MOODLE_28_STABLE
    • MDL-47778_master
    • Hide
      Test 1
      1. Log in as a student.
      2. Visit <yoursite>/admin/tool/monitor/index.php.
      3. Ensure there is no PHP warning.
      Test 2
      1. Log in as an admin.
      2. Visit <yoursite>/admin/tool/monitor/index.php.
      3. Edit the file course/lib.php and change the 'COURSE_MAX_COURSES_PER_DROPDOWN' value to less than the number of courses in the select box.
      4. Reload the page and ensure the select box is not displayed.
      Show
      Test 1 Log in as a student. Visit <yoursite>/admin/tool/monitor/index.php. Ensure there is no PHP warning. Test 2 Log in as an admin. Visit <yoursite>/admin/tool/monitor/index.php. Edit the file course/lib.php and change the 'COURSE_MAX_COURSES_PER_DROPDOWN' value to less than the number of courses in the select box. Reload the page and ensure the select box is not displayed.

      1. Log in as a student.
      2. Visit <yoursite>/admin/tool/monitor/index.php.
      3. Notice you receive the following warning -

      Warning: Invalid argument supplied for foreach() in /Users/mark/htdocs/mstorage/sm/moodle/admin/tool/monitor/classes/output/managesubs/rules.php on line 163
      

            markn Mark Nelson
            markn Mark Nelson
            Ankit Agarwal Ankit Agarwal
            Dan Poltawski Dan Poltawski
            Zachary Durber Zachary Durber
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.