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

Redundant call to time in format.php of topics course format

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.2
    • Component/s: Course
    • Labels:
      None
    • Environment:
      All

      Description

      In version 1.133 line 135 of format.php of the topics course format there is a call to time() which is assigned to the variable $timenow, but this variable is never used:

      $timenow = time();

      Therefore it is redundant and uses some processing time pointlessly.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  5/Dec/11