Check section_id > 0 when returning library details

This commit is contained in:
JonnyWong16 2019-04-27 10:16:11 -07:00
parent 32c05136bd
commit 133335a3fb

View file

@ -694,7 +694,7 @@ class Libraries(object):
'deleted_section': 0
}
if not section_id:
if not section_id or helpers.cast_to_int(section_id) <= 0:
return default_return
def get_library_details(section_id=section_id):