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

Notice in tag cron indicates some kind of logic bug

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Tags
    • Labels:
      None
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Just noticed this in cron logs on moodle.org (latest 1.9 CVS)

      PHP Notice: Undefined index: 712 in /var/www/html/moodle/tag/lib.php on line 855
      PHP Notice: Trying to get property of non-object in /var/www/html/moodle/tag/lib.php on line 855

      ie this line: $cutoff = $tag_correlations[$tag_id]->nr * $min_correlation;

      Which probably affects that whole function

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              scyrma Mathieu Petit-Clair
              Reporter:
              dougiamas Martin Dougiamas
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08