summaryrefslogtreecommitdiff
path: root/src/meetingtools/apps/room
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-08-03 15:22:50 +0200
committerLeif Johansson <leifj@sunet.se>2011-08-03 15:22:50 +0200
commitbd015bbb282eb4093b888ac929b98d2ef620cfec (patch)
tree1d0668c9dc07a57884de6a69ebc078adcb4cf8f5 /src/meetingtools/apps/room
parent2149e84d51164f7831811df0d31b0fc92e81233f (diff)
avoid unknown user count
Diffstat (limited to 'src/meetingtools/apps/room')
-rw-r--r--src/meetingtools/apps/room/views.py2
1 files changed, 1 insertions, 1 deletions
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