From: Jehan-Guillaume (ioguix) de Rorthais Date: Sun, 4 Nov 2012 13:11:36 +0000 (+0100) Subject: Fix bug while browsing a table, reported by Karl O. Pinc X-Git-Tag: REL_5-1-0~23 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=d495eecca480a9aad94dadf22c05b92ca8847ffc;p=phppgadmin.git 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. --- 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"; } - } }