From e0fda9f985e9803110ac910524e12218ebc64bd6 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 1 Aug 2011 10:13:25 +0000 Subject: [PATCH] minor fix --- plugins/generic/enumeration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/generic/enumeration.py b/plugins/generic/enumeration.py index bbc61386a..6a8c0b2d1 100644 --- a/plugins/generic/enumeration.py +++ b/plugins/generic/enumeration.py @@ -887,9 +887,10 @@ class Enumeration: query = safeStringFormat(query, conf.db) value = inject.getValue(query, blind=False) - value = arrayizeValue(filter(None, value)) if not isNoneValue(value): + value = filter(None, arrayizeValue(value)) + if len(value) > 0 and not isinstance(value[0], (list, tuple)): value = zip([conf.db for i in xrange(len(value))], value)