From f3f7d714a66062cd753f0145cf2a71000dd1c312 Mon Sep 17 00:00:00 2001 From: Brady Wetherington Date: Wed, 9 Sep 2020 14:18:05 -0700 Subject: [PATCH] Fix ldap test button for php 7.4 (suppressing errors) --- app/Http/Controllers/Api/SettingsController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/Api/SettingsController.php b/app/Http/Controllers/Api/SettingsController.php index 311480ec6b..5f5eecbb47 100644 --- a/app/Http/Controllers/Api/SettingsController.php +++ b/app/Http/Controllers/Api/SettingsController.php @@ -75,6 +75,7 @@ class SettingsController extends Controller // Get a sample of 10 users so user can verify the data is correct try { Log::info('Testing LDAP sync'); + error_reporting(E_ALL & ~E_DEPRECATED); // workaround for php7.4, which deprecates ldap_control_paged_result $users = $ldap->testUserImportSync(); $message['user_sync'] = [ 'users' => $users