Merge pull request #13025 from ibennetch/comments-qa

Hide comment field when no table comment is set
This commit is contained in:
Michal Čihař 2017-02-22 09:07:26 +01:00 committed by GitHub
commit acb7438883
2 changed files with 6 additions and 3 deletions

View File

@ -84,6 +84,7 @@ phpMyAdmin - ChangeLog
- issue #13000 Align NULL values according to the column alignment
- issue #13021 Show phpMyAdmin errors even with error_reporting set to 0
- issue #13020 Removed warning about client and server versions mismatch
- issue Hide comments on table Structure tab when no comment is set
4.6.6 (2017-01-23)
- issue #12759 Fix Notice regarding 'Undefined index: old_usergroup'

View File

@ -1,9 +1,11 @@
<div id="tablestatistics">
<fieldset>
<legend><?= __('Information'); ?></legend>
<p> <strong> <?= __('Table comments:') ?> </strong>
<?= isset($showtable['TABLE_COMMENT']) ? htmlspecialchars($showtable['TABLE_COMMENT']) : '';?>
</p>
<?php if($showtable['TABLE_COMMENT'] !== '') { ?>
<p> <strong> <?= __('Table comments:') ?> </strong>
<?= htmlspecialchars($showtable['TABLE_COMMENT']) ;?>
</p>
<?php } ?>
<a id="showusage"></a>
<?php if (! $tbl_is_view && ! $db_is_system_schema): ?>