Skip to content

Commit

Permalink
Fix to hidden some lines when related functions are configured as off
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@3059 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
marcelloscata committed Oct 15, 2004
1 parent fa9e7f0 commit ad3a081
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions adm_permissions_report.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: adm_permissions_report.php,v 1.1 2004-10-14 17:34:13 marcelloscata Exp $
# $Id: adm_permissions_report.php,v 1.2 2004-10-15 20:50:11 marcelloscata Exp $
# --------------------------------------------------------

require_once( 'core.php' );
Expand Down Expand Up @@ -210,9 +210,12 @@ function get_section_end_for_email() {
echo get_capability_row_for_email( lang_get( 'email_on_reopened' ), 'reopen' );
echo get_capability_row_for_email( lang_get( 'email_on_deleted' ), 'deleted' );
echo get_capability_row_for_email( lang_get( 'email_on_bugnote_added' ), 'bugnote' );
echo get_capability_row_for_email( lang_get( 'email_on_sponsorship_changed' ), 'sponsor' );
echo get_capability_row_for_email( lang_get( 'email_on_relationship_changed' ), 'relationship' );

if( config_get( 'enable_sponsorship' ) == ON ) {
echo get_capability_row_for_email( lang_get( 'email_on_sponsorship_changed' ), 'sponsor' );
}
if( config_get( 'enable_relationship' ) == ON ) {
echo get_capability_row_for_email( lang_get( 'email_on_relationship_changed' ), 'relationship' );
}
$t_statuses = explode_enum_string( config_get( 'status_enum_string' ) );
foreach( $t_statuses as $t_status ) {
list( $t_state, $t_label ) = explode_enum_arr( $t_status );
Expand Down

0 comments on commit ad3a081

Please sign in to comment.