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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4
    • Fix Version/s: 1.8.5
    • Component/s: Course
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      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

            Assignee:
            poltawski Dan Poltawski
            Reporter:
            sidnelsonplus Sidney Ricardo
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              8/Apr/08