Notice: Undefined property: Drupal\ldap_servers\Entity\Server::$connection in Drupal\ldap_servers\Entity\Server->search() (line 494 of modules/contrib/ldap/ldap_servers/src/Entity/Server.php).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

grahl created an issue. See original summary.

grahl’s picture

Status: Active » Needs review
FileSize
847 bytes

I kept the check to !$this->connection in case that gets instantiated in some places but could return false (haven't checked).

larowlan’s picture

FileSize
465 bytes

I think this is a better approach, default value is NULL.

  • larowlan committed 1bdd8c5 on 8.x-3.x
    Issue #2727647 by grahl, larowlan: Undefined property connection
    
larowlan’s picture

Status: Needs review » Fixed

Thanks

Status: Fixed » Closed (fixed)

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