### Eclipse Workspace Patch 1.0 #P typo3core Index: t3lib/class.t3lib_db.php =================================================================== --- t3lib/class.t3lib_db.php (revision 5077) +++ t3lib/class.t3lib_db.php (working copy) @@ -1266,13 +1266,16 @@ $debug = true; // only enable output if it's really useful 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; - } - $this->sql_free_result($res); - } + $istable=$this->sql_num_rows($this->sql_query('SHOW TABLE STATUS LIKE \''.$table.'\'')); + 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); + } + } } } else { $debug = false;