From bd015bbb282eb4093b888ac929b98d2ef620cfec Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Wed, 3 Aug 2011 15:22:50 +0200 Subject: avoid unknown user count --- src/meetingtools/apps/room/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/meetingtools/apps/room') diff --git a/src/meetingtools/apps/room/views.py b/src/meetingtools/apps/room/views.py index 94b6877..f773ba5 100644 --- a/src/meetingtools/apps/room/views.py +++ b/src/meetingtools/apps/room/views.py @@ -255,7 +255,7 @@ def _import_room(request,acc,r): for key in ('sco_id','name','source_sco_id','urlpath','description','user_count','host_count'): if r.has_key(key) and hasattr(room,key): rv = getattr(room,key) - if rv != r[key] and r[key]: + if rv != r[key] and r[key] != None and r[key] != '': setattr(room,key,r[key]) modified = True -- cgit v1.1