Distinguish no column order in fieldName
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@955 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
5be15059e7
commit
23df820f59
|
@ -183,7 +183,7 @@ if (!$columns) {
|
|||
echo "<thead><tr><td><input type='checkbox' id='all-page' onclick='form_check(this, /check/);'>";
|
||||
$names = array();
|
||||
reset($select);
|
||||
$order = 0;
|
||||
$order = 1;
|
||||
foreach ($rows[0] as $key => $val) {
|
||||
$val = $_GET["columns"][key($select)];
|
||||
$field = $fields[$select ? $val["col"] : $key];
|
||||
|
|
|
@ -29,8 +29,8 @@ function adminer_object() {
|
|||
}
|
||||
|
||||
function fieldName($field, $order = 0) {
|
||||
// only first five columns with comments will be displayed
|
||||
return ($order < 5 ? h($field["comment"]) : "");
|
||||
// only columns with comments will be displayed and only the first five in select
|
||||
return ($order <= 5 ? h($field["comment"]) : "");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue