Bug fix to #73185, discovered via #71513
[freeside.git] / FS / FS / Cron / tax_rate_update.pm
index b6ac63c..fec696f 100755 (executable)
@@ -31,7 +31,7 @@ sub tax_rate_update {
   my %opt = @_;
 
   my $oldAutoCommit = $FS::UID::AutoCommit;
-  $FS::UID::AutoCommit = 0;
+  local $FS::UID::AutoCommit = 0;
   my $dbh = dbh;
 
   my $conf = FS::Conf->new;