Fix ldap test button for php 7.4 (suppressing errors)

This commit is contained in:
Brady Wetherington 2020-09-09 14:18:05 -07:00
parent b258f34bce
commit f3f7d714a6

View file

@ -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