Skip to content

Commit

Permalink
Fix bug in sql where it lost the server variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskl committed Jun 16, 2005
1 parent 90fadc1 commit 4d3a4ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sql.php
Expand Up @@ -6,7 +6,7 @@
* how many SQL statements have been strung together with semi-colons
* @param $query The SQL query string to execute
*
* $Id: sql.php,v 1.30 2005/03/26 10:47:03 chriskl Exp $
* $Id: sql.php,v 1.30.2.1 2005/06/16 04:16:29 chriskl Exp $
*/

// Prevent timeouts on large exports (non-safe mode only)
Expand Down Expand Up @@ -169,9 +169,9 @@ function sqlCallback($query, $rs, $lineno) {
}

echo "<p>{$lang['strsqlexecuted']}</p>\n";

echo "<p><a class=\"navlink\" href=\"database.php?database=", urlencode($_REQUEST['database']),
"&amp;action=sql&amp;query=", urlencode($_POST['query']), "\">{$lang['streditsql']}</a>";
"&amp;server=", urlencode($_REQUEST['server']), "&amp;action=sql&amp;query=", urlencode($_POST['query']), "\">{$lang['streditsql']}</a>";
if ($conf['show_reports'] && isset($rs) && is_object($rs) && $rs->recordCount() > 0) {
echo " | <a class=\"navlink\" href=\"reports.php?action=create&amp;db_name=", urlencode($_REQUEST['database']), "&amp;report_sql=",
urlencode($_POST['query']), "\">{$lang['strcreatereport']}</a>";
Expand Down

0 comments on commit 4d3a4ad

Please sign in to comment.