]> git.joonet.de Git - adminer.git/commitdiff
Display error with non-existent row
authorJakub Vrana <jakub@vrana.cz>
Mon, 1 Aug 2011 19:50:57 +0000 (21:50 +0200)
committerJakub Vrana <jakub@vrana.cz>
Mon, 1 Aug 2011 19:50:57 +0000 (21:50 +0200)
adminer/edit.inc.php

index d807482bf492ddb7ae9c4c4ee2a982190aecdd8e..a82f85329cb281d4900dde197dd70e9bba006415 100644 (file)
@@ -62,6 +62,10 @@ if ($_POST["save"]) {
                $row = (isset($_GET["select"]) && count($rows) != 1 ? null : reset($rows));
        }
 }
+
+if ($row === false) {
+       echo "<p class='error'>" . lang('No rows.') . "\n";
+}
 ?>
 
 <form action="" method="post" enctype="multipart/form-data" id="form">