minor fix

This commit is contained in:
Miroslav Stampar 2011-08-01 10:13:25 +00:00
parent 79b4e26e23
commit e0fda9f985

View File

@ -887,9 +887,10 @@ class Enumeration:
query = safeStringFormat(query, conf.db) query = safeStringFormat(query, conf.db)
value = inject.getValue(query, blind=False) value = inject.getValue(query, blind=False)
value = arrayizeValue(filter(None, value))
if not isNoneValue(value): if not isNoneValue(value):
value = filter(None, arrayizeValue(value))
if len(value) > 0 and not isinstance(value[0], (list, tuple)): if len(value) > 0 and not isinstance(value[0], (list, tuple)):
value = zip([conf.db for i in xrange(len(value))], value) value = zip([conf.db for i in xrange(len(value))], value)