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 95bc90d

Browse files
brenardrombert
authored andcommittedDec 2, 2011
Fix #13571: SOAP Api / mci_get_user_id() : added possibility to find user id by email
1 parent 0b70730 commit 95bc90d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

Diff for: ‎api/soap/mc_api.php

+2
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ function mci_get_user_id( $p_user ) {
105105
$t_user_id = (int) $p_user['id'];
106106
} elseif ( isset( $p_user['name'] ) ) {
107107
$t_user_id = user_get_id_by_name( $p_user['name'] );
108+
} elseif ( isset( $p_user['email'] ) ) {
109+
$t_user_id = user_get_id_by_email( $p_user['email'] );
108110
}
109111

110112
return $t_user_id;

0 commit comments

Comments
 (0)
Please sign in to comment.