diff --git a/Source/Source.API.php b/Source/Source.API.php index e06ef7a..c69056e 100644 --- a/Source/Source.API.php +++ b/Source/Source.API.php @@ -316,7 +316,7 @@ $t_bug = bug_get( $t_bug_id ); # Resolve any fixed bugs that are not already marked as resolved - if ( $t_enable_resolving && $t_bug_data->status < $t_resolved_threshold ) { + if ( $t_enable_resolving && $t_bug->status < $t_resolved_threshold ) { bug_resolve( $t_bug_id, $t_resolution, $t_version, $t_message, null, $t_user_id ); # Optionally update the resoltion, fixed-in version, or add a bugnote