Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-4504

Use of & in SQL query

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Blocker Blocker
    • None
    • 2.5
    • Module: Turnitintool
    • None
    • MOODLE_25_STABLE

      We just discovered (the hard way) that you have used an ampersand (&) in an SQL query.
      Thankfully, it looks like this query is only run occasionally, but when it does it causes the submission in box to get stuck in a loop.

      Line 4528 in the code fragment:

                          // Purge old submissions listings
                          foreach ( $ids as $submission ) {
                              if ( !in_array( $submission->submission_objectid, $keys_found ) ) {
                                  turnitintool_delete_records_select('turnitintool_submissions','submission_objectid='.$submission->submission_objectid.'&submission_part='.$part->id);
                              }
                          }
      

            paul.dawson Paul Dawson (Inactive)
            dobedobedoh Andrew Lyons
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.