Fix namespace causes class check to fail

This commit is contained in:
nathangray 2016-05-30 15:41:27 -06:00
parent 58140745b2
commit 772b97e22d
2 changed files with 2 additions and 2 deletions

View File

@ -898,7 +898,7 @@ class Account implements \ArrayAccess
*/
public static function check_access($rights, $account)
{
if (!is_array($account) && !is_a($account, 'Account'))
if (!is_array($account) && !($account instanceof Account))
{
throw new Api\Exception\WrongParameter('$account must be either an array or an Account object!');
}

View File

@ -107,7 +107,7 @@ class Mailer extends Horde_Mime_Mail
*/
function setAccount($account=null)
{
if (is_a($account, 'Mail\Account'))
if ($account instanceof Mail\Account)
{
$this->account = $account;
}