Add missing closing braces to ldap_timestamp pattern match condition

This commit is contained in:
k0walski 2025-11-03 15:25:10 +02:00 committed by Florian Schlichting
parent 0f14bcb73b
commit 85c61ad601

View File

@ -887,7 +887,7 @@ function sync_LDAP(){
$$k = substr($ldap_timestamp,$v[0],$v[1]); $$k = substr($ldap_timestamp,$v[0],$v[1]);
$ldap_timestamp = $Y.$m.$d.$H.$M.$S; $ldap_timestamp = $Y.$m.$d.$H.$M.$S;
} }
else if ( preg_match('{^(\d{8})(\d{6})(Z)?$', $ldap_timestamp, $matches ) ) { else if ( preg_match('{^(\d{8})(\d{6})(Z)?$}', $ldap_timestamp, $matches ) ) {
$ldap_timestamp = $matches[1].'T'.$matches[2].$matches[3]; $ldap_timestamp = $matches[1].'T'.$matches[2].$matches[3];
} }
else if ( empty($ldap_timestamp) ) { else if ( empty($ldap_timestamp) ) {