import torrus 1.0.9
[freeside.git] / FS / FS / Cron / expire_user_pref.pm
index 7ab73d2..3226927 100644 (file)
@@ -12,6 +12,9 @@ sub expire_user_pref {
                                           " AND expiration < ?";
   my $sth = dbh->prepare($sql) or die dbh->errstr;
   $sth->execute(time) or die $sth->errstr;
+
+  dbh->commit or die dbh->errstr if $FS::UID::AutoCommit
+
 }
 
 1;