diff --git a/admin/xmldb/actions/check_indexes/check_indexes.class.php b/admin/xmldb/actions/check_indexes/check_indexes.class.php index 8ad40b12fd961..db2fcf0185a00 100644 --- a/admin/xmldb/actions/check_indexes/check_indexes.class.php +++ b/admin/xmldb/actions/check_indexes/check_indexes.class.php @@ -222,6 +222,7 @@ function invoke() { } /// We have finished, let's show the results of the search + $s = ''; $r = ''; $r.= ' '; $r.= ' '; $r.= '
'; $r.= '

' . $this->str['searchresults'] . '

'; @@ -236,18 +237,21 @@ function invoke() { foreach ($missing_indexes as $obj) { $xmldb_table = $obj->table; $xmldb_index = $obj->index; - $sqlarr = $xmldb_table->getAddIndexSQL($CFG->dbtype, $CFG->prefix, $xmldb_index, false); + $sqlarr = $xmldb_table->getAddIndexSQL($CFG->dbtype, $CFG->prefix, $xmldb_index, true); $r.= '
  • ' . $this->str['table'] . ': ' . $xmldb_table->getName() . '. ' . - $this->str['index'] . ': ' . $xmldb_index->readableInfo() . '
    ' . - '

    ' . implode('
    ', $sqlarr) . '

  • '; + $this->str['index'] . ': ' . $xmldb_index->readableInfo() . ''; + $s.= '' . str_replace("\n", '
    ', implode('
    ', $sqlarr)) . '

    '; } $r.= ' '; + /// Add the SQL statements (all together) + $r.= '
    ' . $s; } else { $r.= '

    ' . $this->str['nomissingindexesfound'] . '

    '; } $r.= '
    '; + /// Add the complete log message $r.= '

    ' . $this->str['completelogbelow'] . '

    '; $r.= '
    ';