Fix regression in user category search.

This commit is contained in:
Charles Haley 2011-02-23 22:05:04 +00:00
parent 1ad3979e38
commit 8b7b831d80

View File

@ -426,6 +426,8 @@ class ResultCache(SearchQueryParser): # {{{
if l > 0: if l > 0:
alt_loc = location[0:l] alt_loc = location[0:l]
alt_item = location[l+1:] alt_item = location[l+1:]
else:
alt_loc = None
for key in user_cats: for key in user_cats:
if key == location or key.startswith(location + '.'): if key == location or key.startswith(location + '.'):
for (item, category, ign) in user_cats[key]: for (item, category, ign) in user_cats[key]: