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

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8.2, 2.0
    • 1.6.7, 1.7.5, 1.8.5, 1.9, 2.0
    • Libraries
    • None
    • Any
    • MOODLE_18_STABLE, MOODLE_20_STABLE
    • 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

            nicolasconnault Nicolas Connault
            moquist Matt Oquist
            Nobody Nobody
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              3/Mar/08