better fix from Loic

This commit is contained in:
Marc Delisle
2002-07-15 14:18:23 +00:00
parent 0c64bf3ad0
commit 0176f64406
2 changed files with 6 additions and 2 deletions

View File

@@ -1207,8 +1207,7 @@ if (typeof(document.getElementById) != 'undefined'
}
// Want to have the query explained (Mike Beck 2002-05-22)
// but only explain a SELECT (that has not been explained)
if (!eregi('^EXPLAIN[[:space:]]+', $GLOBALS['sql_query'])
&& eregi('SELECT[[:space:]]+', $GLOBALS['sql_query'])) {
if (eregi('^SELECT[[:space:]]+', $GLOBALS['sql_query'])) {
$explain_link = '[<a href="sql.php3'
. $url_qpart
. '&amp;sql_query=' . urlencode('EXPLAIN ' . $GLOBALS['sql_query']) . '">' . $GLOBALS['strExplain'] . '</a>]&nbsp;';