forked from extern/egroupware
Fix namespace causes class check to fail
This commit is contained in:
parent
58140745b2
commit
772b97e22d
@ -898,7 +898,7 @@ class Account implements \ArrayAccess
|
|||||||
*/
|
*/
|
||||||
public static function check_access($rights, $account)
|
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!');
|
throw new Api\Exception\WrongParameter('$account must be either an array or an Account object!');
|
||||||
}
|
}
|
||||||
|
@ -107,7 +107,7 @@ class Mailer extends Horde_Mime_Mail
|
|||||||
*/
|
*/
|
||||||
function setAccount($account=null)
|
function setAccount($account=null)
|
||||||
{
|
{
|
||||||
if (is_a($account, 'Mail\Account'))
|
if ($account instanceof Mail\Account)
|
||||||
{
|
{
|
||||||
$this->account = $account;
|
$this->account = $account;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user