diff options
Diffstat (limited to 'lib/private/Accounts/Account.php')
-rw-r--r-- | lib/private/Accounts/Account.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Accounts/Account.php b/lib/private/Accounts/Account.php index 5f063d5dc5f..8fe2255e030 100644 --- a/lib/private/Accounts/Account.php +++ b/lib/private/Accounts/Account.php @@ -59,7 +59,7 @@ class Account implements IAccount { if ($this->isCollection($property)) { throw new \InvalidArgumentException('getProperty cannot retrieve an IAccountsPropertyCollection'); } - if (!array_key_exists($property, $this->properties)) { + if (!array_key_exists($property, $this->properties) || !$this->properties[$property] instanceof IAccountProperty) { throw new PropertyDoesNotExistException($property); } return $this->properties[$property]; |