@@ -183,7 +183,7 @@ function mc_project_rename_category_by_name( $p_username, $p_password, $p_projec
183
183
$ t_user_id = mci_check_login ( $ p_username , $ p_password );
184
184
185
185
if ( null === $ p_assigned_to ) {
186
- return SoapObjectsFactory::newSoapFault ( 'Client ' , '' , ' p_assigned_to needed ' );
186
+ return SoapObjectsFactory::newSoapFault ( 'Client ' , 'p_assigned_to needed ' );
187
187
}
188
188
189
189
if ( $ t_user_id === false ) {
@@ -221,7 +221,7 @@ function mc_project_get_versions( $p_username, $p_password, $p_project_id ) {
221
221
}
222
222
223
223
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. " );
225
225
}
226
226
227
227
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 ) {
554
554
}
555
555
556
556
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. " );
558
558
}
559
559
560
560
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 ) {
700
700
701
701
702
702
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 ' );
704
704
} else {
705
705
$ t_name = $ p_project ['name ' ];
706
706
}
0 commit comments