Skip to content

Commit

Permalink
Fix. Scanner. Disapproving files fixed #2.
Browse files Browse the repository at this point in the history
  • Loading branch information
Glomberg committed Sep 25, 2023
1 parent 4627be6 commit ec3be03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/spbc-scanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,7 @@ function spbc_scanner_file_disapprove($direct_call = false, $file_id = null)

$previous = json_decode($file_info['previous_state'], true);

if ( $previous ) {
if ( ! $previous ) {
// Placeholders for the approved by CT files
$previous['status'] = 'OK';
$previous['severity'] = null;
Expand Down

0 comments on commit ec3be03

Please sign in to comment.