Skip to content

Commit

Permalink
Fix #19344: cannot use object of type stdClass as array
Browse files Browse the repository at this point in the history
  • Loading branch information
dregad committed Feb 4, 2015
1 parent a4b8e39 commit 3dcac09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/soap/mc_issue_api.php
Expand Up @@ -657,7 +657,7 @@ function mc_issue_add( $p_username, $p_password, $p_issue ) {

if(( $t_project_id == 0 ) || !project_exists( $t_project_id ) ) {
if( $t_project_id == 0 ) {
return SoapObjectsFactory::newSoapFault('Client', "Project '" . $t_project['name'] . "' does not exist.");
return SoapObjectsFactory::newSoapFault('Client', "Project '" . $t_project->name . "' does not exist.");
} else {
return SoapObjectsFactory::newSoapFault('Client', "Project with id '" . $t_project_id . "' does not exist.");
}
Expand Down

0 comments on commit 3dcac09

Please sign in to comment.