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

Notice: Undefined property at /user/index.php when "User list: More detailed"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 1.8.5
    • 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4
    • Course
    • None
    • Any
    • MOODLE_18_STABLE
    • MOODLE_18_STABLE

    Description

      The Notice:
      "Notice: Undefined property: stdClass::$years in /var/www/trunk/lib/moodlelib.php on line 955"

      Appears at:
      /user/index.php

      when i use:
      User list: More detailed

      I fix it in function print_user() in file /lib/weblib.php
      From
      $datestring->day = get_string('day');
      $datestring->days = get_string('days');
      $datestring->hour = get_string('hour');
      $datestring->hours = get_string('hours');
      $datestring->min = get_string('min');
      $datestring->mins = get_string('mins');
      $datestring->sec = get_string('sec');
      $datestring->secs = get_string('secs');

      for

      $datestring->day = get_string('day');
      $datestring->days = get_string('days');
      $datestring->hour = get_string('hour');
      $datestring->hours = get_string('hours');
      $datestring->min = get_string('min');
      $datestring->mins = get_string('mins');
      $datestring->sec = get_string('sec');
      $datestring->secs = get_string('secs');
      $datestring->year = get_string('year'); //added
      $datestring->years = get_string('years'); //added

      Attachments

        Activity

          People

            poltawski Dan Poltawski
            sidnelsonplus Sidney Ricardo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Clockify

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