1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 01:54:00 +02:00

Use end() for last item

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@294 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2007-08-04 19:37:22 +00:00
parent d29bcaf18c
commit 69673aed9b

View File

@@ -51,7 +51,7 @@ if ($_POST) {
$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 => ""));
}