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

Undefined index in badges/renderer.php (take#2)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7.4, 3.8.1, 3.9
    • Fix Version/s: None
    • Component/s: Badges
    • Labels:
    • Affected Branches:
      MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE

      Description

      This may be considered a followup/take#2 of MDL-64441 where a similar PHP notice was fixed. Sara Arjona (@sarjona) pointed me to that issue.

      Using recent 38_STABLE (3.8.1 release), when displaying badge details... if the badge is missing any language... it shows:

      Notice: Undefined index: in .../moodle_ci_site/badges/renderer.php on line 176
      

      For badges in the same site but with a language, no notice is shown.

      Ciao

      (added 37, 38 and 39 as versions though I've not verified it against 37)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Yuliya Bozhko, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: