]> git.joonet.de Git - adminer.git/commitdiff
Hide invalid edit form if table record is not found
authorPeter Knut <peter@pematon.com>
Wed, 2 Oct 2024 07:35:44 +0000 (09:35 +0200)
committerJakub Vrana <jakub@vrana.cz>
Wed, 19 Feb 2025 10:16:39 +0000 (11:16 +0100)
adminer/include/functions.inc.php

index d66ced5ddd3deb656d19efa7c7fb4cf23acf6f57..f637fdd4b17897ff05f76666cc2d7764bec5bf1b 100644 (file)
@@ -1449,6 +1449,7 @@ function edit_form($table, $fields, $row, $update) {
        $adminer->editRowPrint($table, $fields, $row, $update);
        if ($row === false) {
                echo "<p class='error'>" . lang('No rows.') . "\n";
+               return;
        }
        ?>
 <form action="" method="post" enctype="multipart/form-data" id="form">