fixed old service files

This commit is contained in:
Andreas Preikschat 2011-03-13 16:01:01 +01:00
parent bc1938ae1d
commit 0ae31ce861
1 changed files with 4 additions and 0 deletions

View File

@ -183,6 +183,10 @@ class ServiceItem(object):
else:
log.error(u'Invalid value renderer :%s' % self.service_item_type)
self.title = clean_tags(self.title)
# The footer should never be None, but to be compatible with older
# release of OpenLP, we have to correct this to avoid tracebacks.
if self.raw_footer is None:
self.raw_footer = []
self.foot_text = \
u'<br>'.join([footer for footer in self.raw_footer if footer])