From 69116d8eb73a4ca4ea49122e66b4f9ecfda1b775 Mon Sep 17 00:00:00 2001 From: Hivert Quentin Date: Wed, 26 Feb 2025 10:40:43 +0100 Subject: [PATCH] fix(core): don't show link if SOGoURLCreateAccount is set but empty --- UI/MainUI/SOGoRootPage.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/UI/MainUI/SOGoRootPage.m b/UI/MainUI/SOGoRootPage.m index 5dff225ba..276fb85e7 100644 --- a/UI/MainUI/SOGoRootPage.m +++ b/UI/MainUI/SOGoRootPage.m @@ -1099,8 +1099,9 @@ static const NSString *kJwtKey = @"jwt"; - (BOOL) hasUrlCreateAccount { - return ([[SOGoSystemDefaults sharedSystemDefaults] - urlCreateAccount] != nil); + NSString *url; + url = [[SOGoSystemDefaults sharedSystemDefaults] urlCreateAccount]; + return (url != nil && [url length] > 0); } - (NSString *) urlCreateAccount