fix subroutine call from UpdateAccountSettings sub
[freeside.git] / FS / FS / part_export / vpopmail.pm
index bddf175..a505a0f 100644 (file)
@@ -217,10 +217,10 @@ sub vpopmail_sync {
         'STDOUT: '. join(" / ", $rsync->out);
   }
 
-  eval "use Net::SSH;";
+  eval "use Net::SSH qw(ssh);";
   die $@ if $@;
 
-  ssh("vpopmail\@$machine", $restart);
+  ssh("vpopmail\@$machine", $restart) if $restart;
 }