From d495eecca480a9aad94dadf22c05b92ca8847ffc Mon Sep 17 00:00:00 2001 From: "Jehan-Guillaume (ioguix) de Rorthais" Date: Sun, 4 Nov 2012 14:11:36 +0100 Subject: [PATCH] Fix bug while browsing a table, reported by Karl O. Pinc When a table has no uniq key, it was showing the Action head, but not associated column in data body. --- display.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/display.php b/display.php index 82c95aff..a0504dd4 100644 --- a/display.php +++ b/display.php @@ -572,7 +572,7 @@ // Display edit and delete actions if we have a key $colspan = count($buttons); - if ($colspan > 0) + if ($colspan > 0 and count($key) > 0) echo "{$lang['stractions']}\n"; /* we show OIDs only if we are in TABLE or SELECT type browsing */ @@ -621,7 +621,6 @@ $misc->printLink($action); echo "\n"; } - } } -- 2.39.5