Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 37631b8

Browse files
cybdrombert
authored andcommittedJan 31, 2013
Fix #15451: Incorrect invocations of SoapObjectsFactory::newSoapFault
Signed-off-by: Robert Munteanu <robert@lmn.ro>
1 parent 4ea08bf commit 37631b8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
 

‎api/soap/mc_project_api.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ function mc_project_rename_category_by_name( $p_username, $p_password, $p_projec
183183
$t_user_id = mci_check_login( $p_username, $p_password );
184184

185185
if ( null === $p_assigned_to ) {
186-
return SoapObjectsFactory::newSoapFault( 'Client', '', 'p_assigned_to needed' );
186+
return SoapObjectsFactory::newSoapFault( 'Client', 'p_assigned_to needed' );
187187
}
188188

189189
if( $t_user_id === false ) {
@@ -221,7 +221,7 @@ function mc_project_get_versions( $p_username, $p_password, $p_project_id ) {
221221
}
222222

223223
if( !project_exists( $p_project_id ) ) {
224-
return SoapObjectsFactory::newSoapFault( 'Client', '', "Project '$p_project_id' does not exist." );
224+
return SoapObjectsFactory::newSoapFault( 'Client', "Project '$p_project_id' does not exist." );
225225
}
226226

227227
if( !mci_has_readonly_access( $t_user_id, $p_project_id ) ) {
@@ -554,7 +554,7 @@ function mc_project_get_attachments( $p_username, $p_password, $p_project_id ) {
554554
}
555555

556556
if( !project_exists( $p_project_id ) ) {
557-
return SoapObjectsFactory::newSoapFault( 'Client', '', "Project '$p_project_id' does not exist." );
557+
return SoapObjectsFactory::newSoapFault( 'Client', "Project '$p_project_id' does not exist." );
558558
}
559559

560560
if( !mci_has_readonly_access( $t_user_id, $p_project_id ) ) {
@@ -700,7 +700,7 @@ function mc_project_add( $p_username, $p_password, $p_project ) {
700700

701701

702702
if ( !isset( $p_project['name'] ) ) {
703-
return SoapObjectsFactory::newSoapFault( 'Client', '', 'Required field "name" is missing' );
703+
return SoapObjectsFactory::newSoapFault( 'Client', 'Required field "name" is missing' );
704704
} else {
705705
$t_name = $p_project['name'];
706706
}

‎api/soap/mc_project_attachment_api.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function mc_project_attachment_add( $p_username, $p_password, $p_project_id, $p_
5656
return mci_soap_fault_access_denied( $t_user_id );
5757
}
5858
if( is_blank( $p_title ) ) {
59-
return SoapObjectsFactory::newSoapFault( 'Client', '', 'Title must not be empty.' );
59+
return SoapObjectsFactory::newSoapFault( 'Client', 'Title must not be empty.' );
6060
}
6161
return mci_file_add( $p_project_id, $p_name, $p_content, $p_file_type, 'project', $p_title, $p_description, $t_user_id );
6262
}

0 commit comments

Comments
 (0)
Please sign in to comment.