Skip to content

Commit

Permalink
Merge pull request #811 from SaaldjorMike/hide-divider
Browse files Browse the repository at this point in the history
Hide divider if there are no active plugins
  • Loading branch information
laf committed Apr 15, 2015
2 parents 448b634 + 0a25664 commit cea1a5f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion html/includes/print-menubar.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,12 @@

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>
');
}
Expand Down

0 comments on commit cea1a5f

Please sign in to comment.