diff --git a/interface/web/dashboard/dashlets/databasequota.php b/interface/web/dashboard/dashlets/databasequota.php
index ad2439e398ed2ddc7a4d3ff0d1ab91330f8c7d1d..4b06599d1caed608b06872e0fb289d77fe96c3f0 100644
--- a/interface/web/dashboard/dashlets/databasequota.php
+++ b/interface/web/dashboard/dashlets/databasequota.php
@@ -12,7 +12,7 @@ class dashlet_databasequota {
                }
 
 		$modules = explode(',', $_SESSION['s']['user']['modules']);
-		if (!in_array($modules, 'sites')) {
+		if(!in_array('sites', $modules)) {
 			return '';
 		}
 
diff --git a/interface/web/dashboard/dashlets/quota.php b/interface/web/dashboard/dashlets/quota.php
index 443517b0bc3ee6618451fdf9a8c44d2064a57e59..f1c46051d1082649fe3a73971eb719cae905b703 100644
--- a/interface/web/dashboard/dashlets/quota.php
+++ b/interface/web/dashboard/dashlets/quota.php
@@ -12,7 +12,7 @@ class dashlet_quota {
 		}
 
 		$modules = explode(',', $_SESSION['s']['user']['modules']);
-		if (!in_array($modules, 'sites')) {
+		if(!in_array('sites', $modules)) {
 			return '';
 		}