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

Warning: reset() [function.reset]: Passed variable is not an array or object in /var/www/moodle/lib/dmllib.php on line 376

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.2, 2.0
    • Fix Version/s: 1.6.7, 1.7.5, 1.8.5, 1.9, 2.0
    • Component/s: Libraries
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_18_STABLE, MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      Call count_records_sql() with a query that returns 0 results. $rs->fields is set to "false", so reset($rs->fields) produces the warning in the summary.

      NB: In 2.0 from CVS, the line number is 382 instead of 376.

        Attachments

          Activity

            People

            • Assignee:
              nicolasconnault Nicolas Connault
              Reporter:
              moquist Matt Oquist
              Tester:
              Nobody
              Participants:
              Component watchers:
              Amaia Anabitarte, Bas Brands, Carlos Escobedo, 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