changeset 2517:3990b1bca308

mod_firewall: Fix circular dependency check
author Matthew Wild <mwild1@gmail.com>
date Sun, 19 Feb 2017 21:06:08 +0000
parents 248054199d0f
children 0e1054c19f9d
files mod_firewall/mod_firewall.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_firewall/mod_firewall.lua	Mon Feb 20 01:59:33 2017 +0100
+++ b/mod_firewall/mod_firewall.lua	Sun Feb 19 21:06:08 2017 +0000
@@ -153,7 +153,7 @@
 		module:log("error", "Dependency not found: %s", dep);
 		return;
 	end
-	if code.included_deps[dep] then
+	if code.included_deps[dep] ~= nil then
 		if code.included_deps[dep] ~= true then
 			module:log("error", "Circular dependency on %s", dep);
 		end