Commit baf703b9 authored by Helmo's avatar Helmo

Do not show db or site quota when the sites module is not active

parent 3f8c72ef
......@@ -8,6 +8,11 @@ class dashlet_databasequota {
//* Loading Template
$app->uses('tpl,quota_lib');
$modules = $_SESSION['s']['user']['modules'];
if (!in_array($modules, 'sites')) {
return '';
}
$tpl = new tpl;
$tpl->newTemplate("dashlets/templates/databasequota.htm");
......
......@@ -8,6 +8,11 @@ class dashlet_quota {
//* Loading Template
$app->uses('tpl,quota_lib');
$modules = $_SESSION['s']['user']['modules'];
if (!in_array($modules, 'sites')) {
return '';
}
$tpl = new tpl;
$tpl->newTemplate("dashlets/templates/quota.htm");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment