From 436ad14f020d566de10f787443dae776cb4fd9b6 Mon Sep 17 00:00:00 2001 From: AdrienClairembault Date: Thu, 21 Sep 2023 15:21:52 +0200 Subject: [PATCH] Avoid deprecated warning when sync_field is null --- src/Auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Auth.php b/src/Auth.php index a47321f410a..11869891110 100644 --- a/src/Auth.php +++ b/src/Auth.php @@ -1512,7 +1512,7 @@ public static function showSynchronizationForm(User $user) 'name' => 'force_ldap_resynch' ]); - if (strlen($authldap->fields['sync_field']) > 0) { + if (strlen($authldap->fields['sync_field'] ?? "") > 0) { echo Html::submit("" . __s('Clean LDAP fields and force synchronisation') . "", [ 'name' => 'clean_ldap_fields' ]);