We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6170aaf commit a81c4b5Copy full SHA for a81c4b5
src/Entity.php
@@ -176,6 +176,9 @@ public function __get( $property ) {
176
break;
177
case 'DISPLAYNAME':
178
$attribute = $this->metadata()->primaryNameAttribute;
179
+ if ( !$attribute ) {
180
+ return null;
181
+ }
182
183
return ( $this->propertyValues[ $attribute ]['Value'] ) ? $this->propertyValues[ $attribute ]['Value'] : null;
184
0 commit comments