Define email and notify variables before they are used https://sourceforge.net/p/webadmin/bugs/5416/

This commit is contained in:
Jamie Cameron
2020-10-15 20:31:13 -07:00
parent f876411cdc
commit 5b33741e67

View File

@@ -18,6 +18,9 @@ if ($ARGV[1] eq "--prefix") {
$extra_prefix = $ARGV[2];
}
$email = $config{'backup_email_'.($all ? '' : $ARGV[0])};
$notify = $config{'backup_notify_'.($all ? '' : $ARGV[0])};
# Check if MySQL is running
$ex = 0;
($r, $out) = &is_mysql_running();
@@ -36,9 +39,6 @@ else {
@dbs = ( $ARGV[0] );
}
$email = $config{'backup_email_'.($all ? '' : $dbs[0])};
$notify = $config{'backup_notify_'.($all ? '' : $dbs[0])};
if ($cmode) {
# Run and check before-backup command (for all DBs)
$bok = &execute_before(undef, STDOUT, 0, $config{'backup_'}, undef);