mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 13:57:41 -08:00
Fix ldap test button for php 7.4 (suppressing errors)
This commit is contained in:
parent
b258f34bce
commit
f3f7d714a6
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue