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

@@ -5,6 +5,11 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2002-07-15 Marc Delisle <lem9@users.sourceforge.net>
* db_details_export.php3, db_details_links.php3, Documentation.html,
sql.php3, tbl_properties_export.php3, libraries/common.lib.php3,
libraries/select_lang.lib.php3: fixes from Loic
2002-07-14 Marc Delisle <lem9@users.sourceforge.net> 2002-07-14 Marc Delisle <lem9@users.sourceforge.net>
* Documentation.html, db_details_exports.php3, tbl_properties_export.php3: * Documentation.html, db_details_exports.php3, tbl_properties_export.php3:
add a link to a new faq entry explaining some dump options add a link to a new faq entry explaining some dump options

View File

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