Skip to content

Commit

Permalink
Fix #14188: SOAP update function accesses undefined variable in error…
Browse files Browse the repository at this point in the history
… handling
  • Loading branch information
atrol committed Apr 24, 2012
1 parent 7cedca2 commit 1eaaeff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/soap/mc_issue_api.php
Expand Up @@ -748,6 +748,7 @@ function mc_issue_update( $p_username, $p_password, $p_issue_id, $p_issue ) {
if ( isset( $p_issue['category'] ) && !is_blank( $p_issue['category'] ) ) {
return new soap_fault( 'Client', '', "Category field must be supplied." );
} else {
$t_project_name = project_get_name( $t_project_id );
return new soap_fault( 'Client', '', "Category '" . $p_issue['category'] . "' not found for project '$t_project_name'." );
}
}
Expand Down

0 comments on commit 1eaaeff

Please sign in to comment.