Remove bugs in main init

This commit is contained in:
2024-07-20 10:03:14 +02:00
parent c2f72f72ac
commit c4d93e492b
2 changed files with 5 additions and 3 deletions

View File

@@ -75,7 +75,7 @@ func Start() {
lc := config.Keys.LdapConfig
if lc.SyncInterval != "" {
if lc != nil && lc.SyncInterval != "" {
RegisterLdapSyncService(lc.SyncInterval)
}