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

Error in tablelib.php with only one column

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.4.7, 2.5.3
    • 2.4.6, 2.5.2
    • Libraries

      I get the following error with a table with only one column:

      Warning: array_fill() [<a href='function.array-fill'>function.array-fill</a>]: Number of elements must be positive in lib/tablelib.php on line 1043

      It seems to be caused by the "-1" after the count. There is no error without the "-1" or with two columns.

      The change was introduced in MDL-36011.

            damyon Damyon Wiese
            nathanl Nathan Lewis
            Petr Skoda Petr Skoda
            Dan Poltawski Dan Poltawski
            Dan Poltawski Dan Poltawski
            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.