fix bug #3966, only display 'table has no unique column' when table is defined

This commit is contained in:
Dieter Adriaenssens 2013-06-04 10:45:53 +02:00
parent ac6ed91fc7
commit 7a3c15724a
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ phpMyAdmin - ChangeLog
- bug #3959 Using DefaultTabDatabase in NavigationTree for Database Click
- bug #3961 Avoid Suhosin warning when in simulation mode
- bug #3897 Row Statistics and Space usage bugs
- bug #3966 Only display "table has no unique column" message when applicable
4.0.3.0 (not yet released)
- bug #3941 Recent tables list always empty

View File

@ -1239,7 +1239,7 @@ if ((0 == $num_rows && 0 == $unlim_num_rows) || $is_affected) {
&& trim($analyzed_sql[0]['select_expr_clause']) == '*'
&& PMA_Table::isUpdatableView($db, $table);
$editable = $resultSetContainsUniqueKey || $updatableView;
if (PMA_is_system_schema($db) || ! $editable) {
if (!empty($table) && (PMA_is_system_schema($db) || !$editable)) {
$disp_mode = 'nnnn110111';
$msg = PMA_message::notice(
__(