When I try to modify LDAP attributes I sometimes get the following error in the removeUnchangedAttributes function:

Notice: Undefined variable: old_value_is_scalar in LdapServer::removeUnchangedAttributes() (line 509 of /var/www/html/drupal/dev/sites/all/modules/contrib/ldap/ldap_servers/LdapServer.class.php).

This is due to an uninitialized variable. Here is a simple patch to initialize it properly.

CommentFileSizeAuthor
LdapServer.class_.php_.patch403 bytespvasener
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

johnbarclay’s picture

Title: Notice: Undefined variable: old_value_is_scalar » LDAP Server: Notice: Undefined variable: old_value_is_scalar
Version: 7.x-2.0-beta8 » 7.x-2.x-dev
Issue tags: +D7+stable+release+blocker
johnbarclay’s picture

Issue tags: -D7+stable+release+blocker +D7 stable release blocker

  • grahl committed 507d4bb on 7.x-2.x authored by pvasener
    Issue #2201261 by pvasener: LDAP Server: Notice: Undefined variable:...
grahl’s picture

Status: Needs review » Fixed

Looks good, committing without test.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.