bug#0005370: Error creating website; photo was not being checked to see if it exists or not.

svn: r18446
This commit is contained in:
Rob G. Healey 2011-11-15 09:38:48 +00:00
parent c9c05d97a0
commit 09bc6f73f6

View File

@ -1542,6 +1542,7 @@ class BasePage(object):
photo_handle = mediaref.get_reference_handle()
photo = self.report.database.get_object_from_handle(photo_handle)
if photo:
if photo_handle in displayed:
continue
@ -1587,7 +1588,6 @@ class BasePage(object):
# add fullclear for proper styling
section += fullclear
# return indivgallery division to its caller
return section
def display_note_list(self, notelist = None):