Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix type check error in manage_config_workflow_page.php

Strict type check in function check_selected() caused an error comparing
false with the status level, so replaced with 0
  • Loading branch information...
commit 052606d21aa302142288bf5eceeaa1377ef56dac 1 parent 7e7ba3d
Damien Regad authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 manage_config_workflow_page.php
6 manage_config_workflow_page.php
@@ -287,9 +287,9 @@ function access_row() {
287 287 }
288 288 }
289 289 } else {
290   - $t_level = ( isset( $t_project_set[$t_status] ) ? $t_project_set[$t_status] : false );
291   - $t_level_global = ( isset( $t_global_set[$t_status] ) ? $t_global_set[$t_status] : false );
292   - $t_level_file = ( isset( $t_file_set[$t_status] ) ? $t_file_set[$t_status] : false );
  290 + $t_level = ( isset( $t_project_set[$t_status] ) ? $t_project_set[$t_status] : 0 );
  291 + $t_level_global = ( isset( $t_global_set[$t_status] ) ? $t_global_set[$t_status] : 0 );
  292 + $t_level_file = ( isset( $t_file_set[$t_status] ) ? $t_file_set[$t_status] : 0 );
293 293 $t_can_change = ( $t_access >= config_get_access( 'set_status_threshold' ) );
294 294 $t_colour = '';
295 295 if ( $t_level_global != $t_level_file ) {

0 comments on commit 052606d

Please sign in to comment.
Something went wrong with that request. Please try again.