X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FLdapCommon%2FLdapCommon.php;h=aea1b72ea4f409f4a641b3542721ed20102adcb2;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=afc61abf7222633c7a5078c0b8555da256b5738f;hpb=87d46e1ae5e5effcc985021ff5af3f10815f3d3c;p=quix0rs-gnu-social.git diff --git a/plugins/LdapCommon/LdapCommon.php b/plugins/LdapCommon/LdapCommon.php index afc61abf72..aea1b72ea4 100644 --- a/plugins/LdapCommon/LdapCommon.php +++ b/plugins/LdapCommon/LdapCommon.php @@ -75,6 +75,7 @@ class LdapCommon function onAutoload($cls) { + // we've added an extra include-path in the beginning of this file switch ($cls) { case 'MemcacheSchemaCache': @@ -93,6 +94,8 @@ class LdapCommon require_once 'Net/LDAP2/Entry.php'; return false; } + + return true; } function get_ldap_config(){ @@ -367,7 +370,7 @@ class LdapCommon mt_srand((double)microtime() * 1000000); while( strlen( $str ) < $length ) - $str .= substr( $possible, ( rand() % strlen( $possible ) ), 1 ); + $str .= substr( $possible, ( mt_rand() % strlen( $possible ) ), 1 ); return $str; }