1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-09 16:17:48 +02:00

Display error with non-existent row

This commit is contained in:
Jakub Vrana
2011-08-01 21:50:57 +02:00
parent 0ecf84f987
commit 2d721016d9

View 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">