mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 11:34:10 +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:
@@ -51,7 +51,7 @@ if ($_POST) {
|
|||||||
$row["indexes"][$key]["columns"][] = "";
|
$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')) {
|
if ($index["type"] || array_filter($index["columns"], 'strlen') || array_filter($index["lengths"], 'strlen')) {
|
||||||
$row["indexes"][] = array("columns" => array(1 => ""));
|
$row["indexes"][] = array("columns" => array(1 => ""));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user