Project

General

Profile

Bug #19734 » 10003.patch

Administrator Admin, 2009-10-29 15:23

View differences:

t3lib/class.t3lib_db.php
$debug = true;
foreach ($explain_tables as $table) {
$res = $this->sql_query('SHOW INDEX FROM ' . $table, $this->link);
if (is_resource($res)) {
while ($tempRow = $this->sql_fetch_assoc($res)) {
$indices_output[] = $tempRow;
$tableRes = $this->sql_query('SHOW TABLE STATUS LIKE \'' . $table . '\'');
$isTable = $this->sql_num_rows($tableRes);
if ($isTable) {
$res = $this->sql_query('SHOW INDEX FROM ' . $table, $this->link);
if (is_resource($res)) {
while ($tempRow = $this->sql_fetch_assoc($res)) {
$indices_output[] = $tempRow;
}
$this->sql_free_result($res);
}
$this->sql_free_result($res);
}
$this->sql_free_result($tableRes);
}
} else {
$debug = false;
(2-2/2)