aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ManaTools/Shared
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ManaTools/Shared')
-rw-r--r--lib/ManaTools/Shared/TimeZone.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ManaTools/Shared/TimeZone.pm b/lib/ManaTools/Shared/TimeZone.pm
index 544759a2..9aa7ef2f 100644
--- a/lib/ManaTools/Shared/TimeZone.pm
+++ b/lib/ManaTools/Shared/TimeZone.pm
@@ -152,10 +152,12 @@ has 'ntp_program' => (
sub _ntp_program_init {
my $self = shift;
+ $DB::single = 1;
+
# looks for a running service from the configured ones,
# if none is running chooses the first of the list
my $list = $self->ntpServiceList();
- return "" if !$list;
+ return "" if !$list || scalar @{$list} == 0;
my $ntpd = "";
my $isRunning = 0;