Don't try to replace %t and %f when table name is empty.

This commit is contained in:
Michal Čihař
2004-10-11 10:12:25 +00:00
parent 9392a58483
commit 667d2714c0
2 changed files with 8 additions and 5 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2004-10-11 Michal Čihař <michal@cihar.com>
* tbl_query_box.php: Don't try to replace %t and %f when table name is empty.
2004-10-08 Garvin Hicking <pma@supergarv.de> 2004-10-08 Garvin Hicking <pma@supergarv.de>
* lots of files: Adjusted superfluous spaces, added * lots of files: Adjusted superfluous spaces, added
more CSS-ID attributes for better themeability. more CSS-ID attributes for better themeability.

View File

@@ -157,7 +157,7 @@ if (!isset($is_inside_querywindow) ||
<textarea name="sql_query" rows="<?php echo $cfg['TextareaRows']; ?>" cols="<?php echo ((isset($is_inside_querywindow) && $is_inside_querywindow == TRUE && $queryframe_tdcolspan != '') ? ceil($cfg['TextareaCols'] * 1.25) : $cfg['TextareaCols'] * 2); ?>" dir="<?php echo $text_dir; ?>"<?php echo $auto_sel; ?>><?php <textarea name="sql_query" rows="<?php echo $cfg['TextareaRows']; ?>" cols="<?php echo ((isset($is_inside_querywindow) && $is_inside_querywindow == TRUE && $queryframe_tdcolspan != '') ? ceil($cfg['TextareaCols'] * 1.25) : $cfg['TextareaCols'] * 2); ?>" dir="<?php echo $text_dir; ?>"<?php echo $auto_sel; ?>><?php
if (!empty($query_to_display)) { if (!empty($query_to_display)) {
echo htmlspecialchars($query_to_display); echo htmlspecialchars($query_to_display);
} elseif (isset($table)) { } elseif (isset($table) && !empty($table)) {
echo htmlspecialchars( echo htmlspecialchars(
str_replace('%d', PMA_backquote($db), str_replace('%d', PMA_backquote($db),
str_replace('%t', PMA_backquote($table), str_replace('%t', PMA_backquote($table),