Avoid double usage of fieldName function
This commit is contained in:
parent
f30fd121c1
commit
ed85096367
|
@ -241,7 +241,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
|
||||||
foreach ($indexes as $key => $index) {
|
foreach ($indexes as $key => $index) {
|
||||||
$order = array();
|
$order = array();
|
||||||
foreach ($index["columns"] as $val) {
|
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") {
|
if (count(array_filter($order, 'strlen')) > 1 && $key != "PRIMARY") {
|
||||||
$orders[$key] = implode(", ", $order);
|
$orders[$key] = implode(", ", $order);
|
||||||
|
|
Loading…
Reference in a new issue