1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rainloop_ynh.git synced 2024-09-03 20:16:18 +02:00

Fix error

This fix removes a log error caused by the ynh-login-mapping plugin
This commit is contained in:
Jeff 2017-03-05 17:30:32 +01:00 committed by GitHub
parent 916e4e4022
commit c38f23e72e

View file

@ -18,6 +18,7 @@ class YnhLoginMappingPlugin extends \RainLoop\Plugins\AbstractPlugin {
// connection au ldap ynh... en local
$cnx = ldap_connect (); // single connection
ldap_set_option($cnx, LDAP_OPT_PROTOCOL_VERSION, 3);
if (! $cnx) {
$this->Manager()->Actions()->Logger()->Write('YnhLoginMappingPlugin: Could not connect to LDAP server', \MailSo\Log\Enumerations\Type::ERROR);