From 96f5cdc712b027fe7626227ececcf27179bc3751 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 3 Jan 2013 14:26:21 +0100 Subject: [PATCH] Improve cleanup dialog look --- libraries/schema/User_Schema.class.php | 43 +++++++++++++------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/libraries/schema/User_Schema.class.php b/libraries/schema/User_Schema.class.php index 68ba67d3d3..6f3f0cd3ff 100644 --- a/libraries/schema/User_Schema.class.php +++ b/libraries/schema/User_Schema.class.php @@ -490,29 +490,30 @@ class PMA_User_Schema $_strtrans = ''; $_strname = ''; $shoot = false; - if (! empty($tabExist) && is_array($tabExist)) { - foreach ($tabExist as $key => $value) { - if (! $value) { - $_strtrans .= '' . "\n"; - $_strname .= '
  • ' . htmlspecialchars($key) . '
  • ' . "\n"; - $shoot = true; - } - } - if ($shoot) { - echo '
    ' . "\n" - . PMA_generate_common_hidden_inputs($db) - . '' . "\n" - . '' . "\n" - . __('The current page has references to tables that no longer exist. Would you like to delete those references?') - . '' . "\n" - . $_strtrans - . '' . "\n" - . '
    '; + if (empty($tabExist) || ! is_array($tabExist)) { + return; + } + foreach ($tabExist as $key => $value) { + if (! $value) { + $_strtrans .= '' . "\n"; + $_strname .= '
  • ' . htmlspecialchars($key) . '
  • ' . "\n"; + $shoot = true; } } - + if (!$shoot) { + return; + } + echo '
    ' . "\n" + . PMA_generate_common_hidden_inputs($db) + . '' . "\n" + . '' . "\n" + . __('The current page has references to tables that no longer exist. Would you like to delete those references?') + . '' . "\n" + . $_strtrans + . '' . "\n" + . '
    '; } /**