Only show Storage and Server filters if there is more than 1

pull/2077/head
Isaac Connor 2017-11-03 12:03:01 -04:00
parent 67bb8c302f
commit 54d77519c0
1 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ $groupSql = Group::get_group_sql( $group_id );
?>
</span>
<?php
if ( count($ServersById) > 0 ) {
if ( count($ServersById) > 1 ) {
?>
<span class="ServerFilter"><label><?php echo translate('Server')?>:</label>
<?php
@ -127,7 +127,7 @@ echo htmlSelect( 'ServerFilter', array(''=>'All')+$ServersById, (isset($_SESSION
</span>
<?php
}
if ( count($StorageById) > 0 ) { ?>
if ( count($StorageById) > 1 ) { ?>
<span class="StorageFilter"><label><?php echo translate('Storage')?>:</label>
<?php
echo htmlSelect( 'StorageFilter', array(''=>'All')+$StorageById, (isset($_SESSION['StorageFilter'])?$_SESSION['StorageFilter']:''), array('onchange'=>'changeFilter(this);') );