Skip to content

Commit

Permalink
Use end() for last item
Browse files Browse the repository at this point in the history
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@294 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information
jakubvrana committed Aug 4, 2007
1 parent d29bcaf commit 69673ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexes.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 => ""));
}
Expand Down

0 comments on commit 69673ae

Please sign in to comment.