Skip to content

Commit

Permalink
Fix type check error in manage_config_workflow_page.php
Browse files Browse the repository at this point in the history
Strict type check in function check_selected() caused an error comparing
false with the status level, so replaced with 0
  • Loading branch information
dregad committed Apr 4, 2012
1 parent 7e7ba3d commit 052606d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions manage_config_workflow_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,9 @@ function access_row() {
}
}
} else {
$t_level = ( isset( $t_project_set[$t_status] ) ? $t_project_set[$t_status] : false );
$t_level_global = ( isset( $t_global_set[$t_status] ) ? $t_global_set[$t_status] : false );
$t_level_file = ( isset( $t_file_set[$t_status] ) ? $t_file_set[$t_status] : false );
$t_level = ( isset( $t_project_set[$t_status] ) ? $t_project_set[$t_status] : 0 );
$t_level_global = ( isset( $t_global_set[$t_status] ) ? $t_global_set[$t_status] : 0 );
$t_level_file = ( isset( $t_file_set[$t_status] ) ? $t_file_set[$t_status] : 0 );
$t_can_change = ( $t_access >= config_get_access( 'set_status_threshold' ) );
$t_colour = '';
if ( $t_level_global != $t_level_file ) {
Expand Down

0 comments on commit 052606d

Please sign in to comment.