diff options
-rw-r--r-- | etc/inc/voucher.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/voucher.inc b/etc/inc/voucher.inc index 094b829..3356a1a 100644 --- a/etc/inc/voucher.inc +++ b/etc/inc/voucher.inc @@ -670,6 +670,9 @@ function voucher_save_db_to_config_zone() { if (!isset($config['voucher'][$cpzone]['enable'])) return; // no vouchers or don't want to save DB's + if (!is_array($config['voucher'][$cpzone]['roll'])) + return; + $voucherlck = lock("voucher{$cpzone}", LOCK_EX); // walk all active rolls and save runtime DB's to flash |