From e9ff7852f16c7179d90d0e8213ef039b45444d70 Mon Sep 17 00:00:00 2001
From: mcramer <m.cramer@pixcept.de>
Date: Wed, 22 Aug 2012 04:33:22 -0400
Subject: [PATCH] Bugfix: vhost subdomain were not counted on subdomain limit

---
 interface/web/dashboard/dashlets/limits.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/interface/web/dashboard/dashlets/limits.php b/interface/web/dashboard/dashlets/limits.php
index 81f8701..16144f2 100644
--- a/interface/web/dashboard/dashlets/limits.php
+++ b/interface/web/dashboard/dashlets/limits.php
@@ -67,7 +67,7 @@
 		
 		$limits[] = array('field' => 'limit_web_subdomain',
 						  'db_table' => 'web_domain',
-						  'db_where' => "type = 'subdomain'");
+						  'db_where' => "(type = 'subdomain' OR type = 'vhostsubdomain')");
 		
 		$limits[] = array('field' => 'limit_web_aliasdomain',
 						  'db_table' => 'web_domain',

--
Gitblit v1.9.1