diff options
author | Michal Čihař <michal@cihar.com> | 2017-03-06 11:22:07 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2017-03-20 19:55:38 +0300 |
commit | 9f2773c9c233671932945ba0b59a6c97b82bf96a (patch) | |
tree | bdef0d8d9d0535dabd68430a962476324da26e59 /tbl_operations.php | |
parent | 5da44ce1a642e611068276fdcc1eef236e88a9a6 (diff) |
Simplify rereading of information
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'tbl_operations.php')
-rw-r--r-- | tbl_operations.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tbl_operations.php b/tbl_operations.php index 175fecea76..6ccbed741e 100644 --- a/tbl_operations.php +++ b/tbl_operations.php @@ -87,7 +87,7 @@ $pma_table = $GLOBALS['dbi']->getTable( $GLOBALS['db'], $GLOBALS['table'] ); -$reread_info = $pma_table->getStatusInfo(null, false); +$reread_info = false; $table_alters = array(); /** @@ -133,7 +133,7 @@ if (isset($_REQUEST['submitoptions'])) { $_message .= $pma_table->getLastMessage(); $result = true; $GLOBALS['table'] = $pma_table->getName(); - $reread_info = $pma_table->getStatusInfo(null, true); + $reread_info = true; $reload = true; } else { $_message .= $pma_table->getLastError(); @@ -214,7 +214,7 @@ if ($reread_info) { // a change, clear the cache $GLOBALS['dbi']->clearTableCache(); $GLOBALS['dbi']->selectDb($GLOBALS['db']); - $GLOBALS['showtable'] = $pma_table->getStatusInfo(null, (isset($reread_info) && $reread_info ? true : false)); + $GLOBALS['showtable'] = $pma_table->getStatusInfo(null, true); if ($pma_table->isView()) { $tbl_is_view = true; $tbl_storage_engine = __('View'); @@ -230,6 +230,7 @@ if ($reread_info) { $auto_increment = $pma_table->getAutoIncrementInfo(); $create_options = $pma_table->createOptionsArray(); } +unset($reread_info); if (isset($result) && empty($message_to_show)) { if (empty($_message)) { |