misc: make links() return an empty string when there's no link (#6586)

This commit is contained in:
Frédéric Péters 2015-02-27 10:58:22 +01:00
parent f632025fb8
commit 5f8fa4b015
1 changed files with 1 additions and 1 deletions

View File

@ -1147,7 +1147,7 @@ class AlternateRootDirectory(OldRootDirectory):
def links(self):
links = Link.select()
if not links:
return
return ''
Link.sort_by_position(links)