Don't export triggers without table (bug #3193489)
This commit is contained in:
parent
e25e78037f
commit
5b8361af65
|
@ -77,12 +77,9 @@ SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
|
||||||
if ($data) {
|
if ($data) {
|
||||||
$adminer->dumpData($row["Name"], $_POST["data_style"], "SELECT * FROM " . table($row["Name"]));
|
$adminer->dumpData($row["Name"], $_POST["data_style"], "SELECT * FROM " . table($row["Name"]));
|
||||||
}
|
}
|
||||||
if ($is_sql && $_POST["triggers"]) {
|
if ($is_sql && $_POST["triggers"] && $table && ($triggers = trigger_sql($row["Name"], $_POST["table_style"]))) {
|
||||||
$triggers = trigger_sql($row["Name"], $_POST["table_style"]);
|
|
||||||
if ($triggers) {
|
|
||||||
echo "\nDELIMITER ;;\n$triggers\nDELIMITER ;\n";
|
echo "\nDELIMITER ;;\n$triggers\nDELIMITER ;\n";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if ($ext == "tar") {
|
if ($ext == "tar") {
|
||||||
echo tar_file((DB != "" ? "" : "$db/") . "$row[Name].csv", ob_get_clean());
|
echo tar_file((DB != "" ? "" : "$db/") . "$row[Name].csv", ob_get_clean());
|
||||||
} elseif ($is_sql) {
|
} elseif ($is_sql) {
|
||||||
|
|
Loading…
Reference in a new issue