diff --git a/cfp/views.py b/cfp/views.py index 9d2cc81..88a217f 100644 --- a/cfp/views.py +++ b/cfp/views.py @@ -709,8 +709,8 @@ def talk_list(request): if data['room']: talk.room = Room.objects.get(site=request.conference.site, slug=data['room']) talk.save() - email = int(data['email']) - if email: + if data['email']: + email = int(data['email']) if email == TalkActionForm.EMAIL_TALKS: request.session['talk-email-list'] = data['talks'] return redirect(reverse('talk-email'))