From f92595dcc53dd639fa3c271bda14d037648d8464 Mon Sep 17 00:00:00 2001 From: bcyrill Date: Sat, 29 Dec 2012 15:19:44 +0100 Subject: Fix: Check for the existence of the rules file --- etc/inc/captiveportal.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index a38435c..4480cbe 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -1361,7 +1361,7 @@ function captiveportal_free_dn_ruleno($ruleno) { global $config, $g; $cpruleslck = lock("captiveportalrulesdn", LOCK_EX); - if (file_exists("{$g['vardb_path']}/captiveportal_{$cpzone}.rules")) { + if (file_exists("{$g['vardb_path']}/captiveportaldn.rules")) { $rules = unserialize(file_get_contents("{$g['vardb_path']}/captiveportaldn.rules")); $rules[$ruleno] = false; $rules[++$ruleno] = false; -- cgit v1.1