Fix for Issues #905 and #906

This commit is contained in:
Miroslav Stampar 2014-11-06 11:41:10 +01:00
parent 31f8d6e612
commit d087565051

View File

@ -101,7 +101,9 @@ class Users:
values = inject.getValue(query, blind=False, time=False)
if not isNoneValue(values):
kb.data.cachedUsers = arrayizeValue(values)
kb.data.cachedUsers = []
for value in arrayizeValue(values):
kb.data.cachedUsers.append(unArrayizeValue(value))
if not kb.data.cachedUsers and isInferenceAvailable() and not conf.direct:
infoMsg = "fetching number of database users"