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

Pass $error as param

This commit is contained in:
Jakub Vrana
2025-03-28 19:03:25 +01:00
parent e219ef9ad1
commit 3cfae4b8f4
3 changed files with 4 additions and 4 deletions

View File

@@ -363,8 +363,8 @@ function on_help(string $command, int $side = 0): string {
* @param Field[] $fields
* @param mixed $row
*/
function edit_form(string $table, array $fields, $row, ?bool $update): void {
global $adminer, $error;
function edit_form(string $table, array $fields, $row, ?bool $update, string $error = ''): void {
global $adminer;
$table_name = $adminer->tableName(table_status1($table, true));
page_header(
($update ? lang('Edit') : lang('Insert')),