original_string: private function handleLDAPError(\Adldap\Adldap $adldap)
      {
          if (false != $adldap) {
              // May be helpful for finding out what and why went wrong.
              $adLDAPError = $adldap->getConnection()->getLastError();
              if ("Success" != $adLDAPError) {
                  Log::error('Problem with LDAP:' . $adLDAPError);
              }
          }
      }
code: private function handleLDAPError(\Adldap\Adldap $adldap)
      {
          if (false != $adldap) {
              // May be helpful for finding out what and why went wrong.
              $adLDAPError = $adldap->getConnection()->getLastError();
              if ("Success" != $adLDAPError) {
                  Log::error('Problem with LDAP:' . $adLDAPError);
              }
          }
      }
code_tokens: private function handleLDAPError ( \ Adldap \ Adldap $ adldap ) { if ( false != $ adldap ) { // May be helpful for finding out what and why went wrong. $ adLDAPError = $ adldap -> getConnection ( ) -> getLastError ( ) ; if ( "Success" != $ adLDAPError ) { Log :: error ( 'Problem with LDAP:' . $ adLDAPError ) ; } } }
docstring: Logs the last LDAP error if it is not "Success".
  
  @param array $adldap   The instance of the adLDAP object to check for
  error.
docstring_tokens: Logs the last LDAP error if it is not Success .