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)