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

Unnecessary IF

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 3.8.8, 3.9.6, 3.10.3
    • Logging
    • None
    • MOODLE_310_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • Internationals - 3.11 Sprint 9

      In login/lib.php has an IF that checks if it's called home.

      if ($urltogo == ($CFG->wwwroot . '/')) {

       

      Within this IF there is another one that validates several other options

      if ($urltogo == $CFG->wwwroot or $urltogo == $CFG->wwwroot.'/' or $urltogo == $CFG->wwwroot.'/index.php') {

       

      but it only arrives at this IF with the clause "$urltogo == $CFG->wwwroot.'/'"

       

      and never with "$urltogo == $CFG->wwwroot" and "$urltogo == $CFG->wwwroot.'/index.php'"

            Unassigned Unassigned
            eduardokraus Eduardo Kraus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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