Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo Michael <me@mynetx.net>2012-04-15 08:11:11 +0400
committerJo Michael <me@mynetx.net>2012-04-15 08:11:11 +0400
commit569aed795cbd9349afc0e2626d306f5ffb950cf4 (patch)
tree10bae11fcaf731327f407f2d66598f3e51bf4f68 /db_structure.php
parent05699a7ac473d9cada3ea813463ab025c3432498 (diff)
Drop view confirm properly, don't show truncate action for views
Diffstat (limited to 'db_structure.php')
-rw-r--r--db_structure.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/db_structure.php b/db_structure.php
index a80283094e..e190025f7a 100644
--- a/db_structure.php
+++ b/db_structure.php
@@ -372,6 +372,10 @@ foreach ($tables as $keyname => $each_table) {
$empty_table .= $titles['NoEmpty'];
}
$empty_table .= '</a>';
+ // truncating views doesn't work
+ if ($table_is_view) {
+ $empty_table = '&nbsp;';
+ }
$drop_query = 'DROP '
. ($table_is_view ? 'VIEW' : 'TABLE')
@@ -446,7 +450,9 @@ foreach ($tables as $keyname => $each_table) {
unset($table_part);
}
?>
-<tr class="<?php echo $odd_row ? 'odd' : 'even'; $odd_row = ! $odd_row; ?>"
+<tr class="<?php echo $odd_row ? 'odd' : 'even'; $odd_row = ! $odd_row;
+ echo $table_is_view ? ' is_view' : '';
+ ?>"
id="row_tbl_<?php echo $i; ?>">
<td class="center">
<input type="checkbox" name="selected_tbl[]"