misc: make links() return an empty string when there's no link (#6586)
This commit is contained in:
parent
f632025fb8
commit
5f8fa4b015
|
@ -1147,7 +1147,7 @@ class AlternateRootDirectory(OldRootDirectory):
|
|||
def links(self):
|
||||
links = Link.select()
|
||||
if not links:
|
||||
return
|
||||
return ''
|
||||
|
||||
Link.sort_by_position(links)
|
||||
|
||||
|
|
Reference in New Issue