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

Pass $result to last_id

This commit is contained in:
Jakub Vrana
2025-03-17 19:40:21 +01:00
parent 17c0960e7f
commit 19313a8dab
11 changed files with 12 additions and 11 deletions

View File

@@ -55,7 +55,7 @@ if ($_POST && !$error && !isset($_GET["select"])) {
}
} else {
$result = $driver->insert($TABLE, $set);
$last_id = ($result ? last_id() : 0);
$last_id = ($result ? last_id($result) : 0);
queries_redirect($location, lang('Item%s has been inserted.', ($last_id ? " $last_id" : "")), $result); //! link
}
}