From c23fc1efe666acca3d9b2d4abe1f58014cbd6f77 Mon Sep 17 00:00:00 2001 From: Jo Michael Date: Fri, 20 Apr 2012 23:51:13 +0200 Subject: [PATCH] Don't allow to truncate empty tables in database structure --- db_structure.php | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/db_structure.php b/db_structure.php index e190025f7abb..11bab1458136 100644 --- a/db_structure.php +++ b/db_structure.php @@ -356,22 +356,23 @@ $browse_table_label = '' . $truename . ''; if (! $db_is_information_schema) { - $empty_table = ''; if ($may_have_rows) { + $empty_table = ''; + $empty_table .= $titles['Empty']; + $empty_table .= ''; } else { - $empty_table .= $titles['NoEmpty']; + $empty_table = $titles['NoEmpty']; } - $empty_table .= ''; // truncating views doesn't work if ($table_is_view) { $empty_table = ' ';