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

Coding error while trying to access messages

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.6
    • Fix Version/s: None
    • Component/s: Messages

      Description

      This is an issue to try and fix a problem reported in the forums.

      codingerror
       
      Coding error detected, it must be fixed by a programmer: moodle_database::get_in_or_equal() does not accept empty arrays
       
      File: /lib/dml/moodle_database.php
      Line: 770
      Stack trace:
       
      Error code: codingerror
       
      * line 770 of /lib/dml/moodle_database.php: coding_exception thrown
      * line 725 of /message/classes/api.php: call to moodle_database->get_in_or_equal()
      * line 1653 of /message/externallib.php: call to core_message\api::get_conversations()
      * line 244 of /lib/externallib.php: call to core_message_external::get_conversations()
      * line 59 of /lib/ajax/service.php: call to external_api::call_external_function()
       

      From my initial inspection it looks like it shouldn't be possible to get into this situation. Conversations are checked here.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: