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

When importing a database preset, if a "-" is part of the database description, then array to string conversion fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Labels:
      None
    • Environment:
      Just in case:
          Linux infong 2.4
          PHP Version 5.2.4
          MySQL 5.0.45
          Window Vista Home Basic
          Firefox 2.0.0.11
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      When importing a database preset, if a "-" is part of the database description, then array to string conversion fails. Instead of the description Moodle prints "Array"

      Note
      ====
      After a couple of tries, I have isolated the error to a "-" in the description :-D

      To reproduce
      ===========

      *Turn on Error Reporting
      1. Create new database in the course
      2. Import the database preset below (has a "-" in the description of the database)
      3. Select Continue

      Expected result
      ============
      Successfully Import without Moodle Developer Errors

      Actual result
      ==========
      Notice: Array to string conversion in /homepages/38/d169545018/htdocs/moodle/lib/datalib.php on line 28

      Instead of a description of the database: "Array" is printed

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              poltawski Dan Poltawski
              Reporter:
              orhssoccerguy Rowan Chakoumakos
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

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