Explorar o código

Use the ? operator

Shane Kilkelly %!s(int64=10) %!d(string=hai) anos
pai
achega
8be95a5169
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      server-ce/settings.coffee

+ 1 - 1
server-ce/settings.coffee

@@ -416,7 +416,7 @@ if process.env["SHARELATEX_LDAP_HOST"]
 
 		if typeof(ca)  == 'string'
 			ca_paths = [ca]
-		else if typeof(ca) == 'object' && ca.length?
+		else if typeof(ca) == 'object' && ca?.length?
 			ca_paths = ca
 		else
 			console.error "problem parsing SHARELATEX_LDAP_TLS_OPTS_CA_PATH"