From 7a3c15724ab86af78f2f2475cfaea0470ab0f073 Mon Sep 17 00:00:00 2001 From: Dieter Adriaenssens Date: Tue, 4 Jun 2013 10:45:53 +0200 Subject: [PATCH] fix bug #3966, only display 'table has no unique column' when table is defined --- ChangeLog | 1 + sql.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f84ad0f8c8..90b2b4ad0c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/sql.php b/sql.php index 35d2c67618..6b41fcaa01 100644 --- a/sql.php +++ b/sql.php @@ -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( __(