From 29ea0950b6270d98e750793e95d626947d641cc1 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 15 Jan 2011 23:43:26 +0000 Subject: [PATCH] now False is also affected (along with None and "") --- lib/core/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index 81a335846..d29714d51 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1945,7 +1945,7 @@ def initTechnique(technique=None): # Restoring stored conf options for key, value in kb.injection.conf.items(): - if value and (not hasattr(conf, key) or (hasattr(conf, key) and getattr(conf, key) in ("", None))): + if value and (not hasattr(conf, key) or (hasattr(conf, key) and not getattr(conf, key))): setattr(conf, key, value) debugMsg = "resuming configuration option '%s' (%s)" % (key, value) logger.debug(debugMsg)