Don't try to replace %t and %f when table name is empty.
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$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>
|
||||
* lots of files: Adjusted superfluous spaces, added
|
||||
more CSS-ID attributes for better themeability.
|
||||
|
@@ -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
|
||||
if (!empty($query_to_display)) {
|
||||
echo htmlspecialchars($query_to_display);
|
||||
} elseif (isset($table)) {
|
||||
} elseif (isset($table) && !empty($table)) {
|
||||
echo htmlspecialchars(
|
||||
str_replace('%d', PMA_backquote($db),
|
||||
str_replace('%t', PMA_backquote($table),
|
||||
|
Reference in New Issue
Block a user