From 2148cb95887063616fbec64f278d1777ce5db7bb Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sat, 31 Aug 2019 19:11:05 -0700 Subject: [PATCH] Don't bother trying to parse the config file if needed module is missing https://www.virtualmin.com/node/67051 --- jabber/backup_config.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/jabber/backup_config.pl b/jabber/backup_config.pl index 1ce9d7484..66be992ea 100755 --- a/jabber/backup_config.pl +++ b/jabber/backup_config.pl @@ -33,6 +33,7 @@ return undef; # Called after the files are restored from a backup sub post_restore { +return undef if (!$got_xml_parser); if (&check_pid_file(&jabber_pid_file())) { $err = &stop_jabber(); return $err if ($err);