1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +02:00

Save bytes

This commit is contained in:
Jakub Vrana
2011-08-08 18:23:32 +02:00
parent 1a30f25311
commit b7e1cb09c1
5 changed files with 13 additions and 17 deletions

View File

@@ -26,10 +26,8 @@ if ($_POST && !$error) {
page_header(($EVENT != "" ? lang('Alter event') . ": " . h($EVENT) : lang('Create event')), $error);
$row = array();
if ($_POST) {
$row = $_POST;
} elseif ($EVENT != "") {
$row = $_POST;
if (!$row && $EVENT != "") {
$rows = get_rows("SELECT * FROM information_schema.EVENTS WHERE EVENT_SCHEMA = " . q(DB) . " AND EVENT_NAME = " . q($EVENT));
$row = reset($rows);
}