]> git.joonet.de Git - adminer.git/commitdiff
Avoid double usage of fieldName function
authorJakub Vrana <jakub@vrana.cz>
Tue, 28 Dec 2010 11:32:47 +0000 (12:32 +0100)
committerJakub Vrana <jakub@vrana.cz>
Tue, 28 Dec 2010 11:32:47 +0000 (12:32 +0100)
editor/include/adminer.inc.php

index 07e99932e0a52d5d1685177c01b910c2fd0a2d02..9d9b87e5aa03cd1c85f17ab7165f5c110a9cf521 100644 (file)
@@ -241,7 +241,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
                foreach ($indexes as $key => $index) {
                        $order = array();
                        foreach ($index["columns"] as $val) {
-                               $order[] = $this->fieldName(array("field" => $val, "comment" => $columns[$val]));
+                               $order[] = $columns[$val];
                        }
                        if (count(array_filter($order, 'strlen')) > 1 && $key != "PRIMARY") {
                                $orders[$key] = implode(", ", $order);