Merge pull request #811 from SaaldjorMike/hide-divider

Hide divider if there are no active plugins
This commit is contained in:
Neil Lathwood
2015-04-15 15:38:46 +01:00
+5 -1
View File
@@ -433,8 +433,12 @@ Plugins::call('menu');
if ($_SESSION['userlevel'] >= '10')
{
echo('
if (dbFetchCell("SELECT COUNT(*) from `plugins` WHERE plugin_active = '1'" > 0) {
echo('
<li role="presentation" class="divider"></li>
');
}
echo('
<li><a href="plugin/view=admin"> <i class="fa fa-lock fa-fw fa-lg"></i>Plugin Admin</a></li>
');
}