From 93c5d58612cc745e4c139799c583fdaa1bcaec90 Mon Sep 17 00:00:00 2001 From: Andrii Vasyliev Date: Fri, 4 Sep 2015 14:46:46 +0000 Subject: [PATCH] + check if @domain exists --- src/controllers/DashboardController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/DashboardController.php b/src/controllers/DashboardController.php index 5b76e95..b60ce24 100644 --- a/src/controllers/DashboardController.php +++ b/src/controllers/DashboardController.php @@ -26,7 +26,7 @@ public function actionIndex() return $this->render('index', ['model' => ClientController::findModel([ 'id' => Yii::$app->user->identity->id, 'with_tickets_count' => 1, - 'with_domains_count' => 1, + 'with_domains_count' => Yii::getAlias('@domain', false) ? 1 : 0, 'with_servers_count' => 1, 'with_hosting_count' => 1, 'with_contacts_count' => 1,