Skip to content

Commit b272eaa

Browse files
committedNov 11, 2011
Fix #13528 : SOAP API accesses undefined variable in error handling
1 parent 8c78051 commit b272eaa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎api/soap/mc_file_api.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -192,16 +192,16 @@ function mci_file_get( $p_file_id, $p_type, $p_user_id ) {
192192
switch( $p_type ) {
193193
case 'bug':
194194
if( !mci_file_can_download_bug_attachments( $t_bug_id, $p_user_id ) ) {
195-
return mci_soap_fault_access_denied( $t_user_id );
195+
return mci_soap_fault_access_denied( $p_user_id );
196196
}
197197
break;
198198
case 'doc':
199199
# Check if project documentation feature is enabled.
200200
if( OFF == config_get( 'enable_project_documentation' ) ) {
201-
return mci_soap_fault_access_denied( $t_user_id );
201+
return mci_soap_fault_access_denied( $p_user_id );
202202
}
203203
if( !access_has_project_level( config_get( 'view_proj_doc_threshold' ), $t_project_id, $p_user_id ) ) {
204-
return mci_soap_fault_access_denied( $t_user_id );
204+
return mci_soap_fault_access_denied( $p_user_id );
205205
}
206206
break;
207207
}

0 commit comments

Comments
 (0)
Please sign in to comment.