galleroob: fix selection of wrong backend

This commit is contained in:
Noé Rubinstein 2011-09-03 08:14:36 +02:00 committed by Romain Bignon
commit f4b9d08ff7

View file

@ -96,9 +96,9 @@ class Galleroob(ReplApplication):
gallery = None
_id, backend = self.parse_id(_id)
for backend, result in self.do('get_gallery', _id, backends=backend):
for _backend, result in self.do('get_gallery', _id, backends=backend):
if result:
backend = backend
backend = _backend
gallery = result
if not gallery: