summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_captiveportal_vouchers.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/status_captiveportal_vouchers.php')
-rw-r--r--usr/local/www/status_captiveportal_vouchers.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/status_captiveportal_vouchers.php b/usr/local/www/status_captiveportal_vouchers.php
index 542dd1b..3bee04d 100644
--- a/usr/local/www/status_captiveportal_vouchers.php
+++ b/usr/local/www/status_captiveportal_vouchers.php
@@ -72,6 +72,10 @@ $db = array();
foreach($a_roll as $rollent) {
$roll = $rollent['number'];
$minutes = $rollent['minutes'];
+
+ if (!file_exists("{$g['vardb_path']}/voucher_{$cpzone}_active_$roll.db"))
+ continue;
+
$active_vouchers = file("{$g['vardb_path']}/voucher_{$cpzone}_active_$roll.db", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
foreach($active_vouchers as $voucher => $line) {
list($voucher,$timestamp, $minutes) = explode(",", $line);
OpenPOWER on IntegriCloud