fix use of old accounts_sql class, only existing if old phpgwapi is installed

This commit is contained in:
Ralf Becker 2017-02-28 10:14:38 +01:00
parent 6cc64bd9b1
commit 80cb358d88

View File

@ -357,7 +357,7 @@ class Sql extends Mail\Smtp
*/
function getMailboxes($return_inactive)
{
$join = 'JOIN '.accounts_sql::TABLE.' ON '.self::TABLE.'.account_id='.accounts_sql::TABLE.'.account_id';
$join = 'JOIN '.Api\Accounts\Sql::TABLE.' ON '.self::TABLE.'.account_id='.Api\Accounts\Sql::TABLE.'.account_id';
if (!$return_inactive)
{
$join .= ' JOIN '.self::TABLE.' active ON active.account_id='.self::TABLE.'.account_id AND active.mail_type='.self::TYPE_ENABLED;