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

filesystem repository plugin misses dirs/files if name evaluates to false ("0")

XMLWordPrintable

      The readdir loop in repository/filessystem/lib.php line 102 is erroneous.
      It reads : while (($file = readdir($dh)) != false) {
      while it must be : while (($file = readdir($dh)) !== false) {
      for the test condition to be correct.

            pholden Paul Holden
            dmascre Damien MASCRÉ
            Andrew Lyons Andrew Lyons
            Huong Nguyen Huong Nguyen
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 31 minutes
                1h 31m

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