Browse files

Use end() for last item

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@294 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
1 parent d29bcaf commit 69673aed9b063e4bb431d2ba0bfd3a5906f0838f jakubvrana committed Aug 4, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 indexes.inc.php
View
2 indexes.inc.php
@@ -51,7 +51,7 @@
$row["indexes"][$key]["columns"][] = "";
}
}
- $index = $row["indexes"][count($row["indexes"]) - 1];
+ $index = end($row["indexes"]);
if ($index["type"] || array_filter($index["columns"], 'strlen') || array_filter($index["lengths"], 'strlen')) {
$row["indexes"][] = array("columns" => array(1 => ""));
}

0 comments on commit 69673ae

Please sign in to comment.