Permalink
Browse files

Fix phpDoc for mc_project_get_id_from_name()

project_get_id_by_name() returns 0 when project is not found, not -1
  • Loading branch information...
1 parent 52edf9d commit ed7463840ff9c7aae9180480b28249379793c716 @dregad dregad committed Mar 24, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 api/soap/mc_project_api.php
@@ -786,7 +786,7 @@ function mci_project_as_array_by_id( $p_project_id ) {
* @param string $p_username The name of the user trying to access the versions.
* @param string $p_password The password of the user.
* @param string $p_project_name The name of the project to retrieve.
- * @return integer The id of the project with the given name, -1 if there is no such project.
+ * @return integer The id of the project with the given name, 0 if there is no such project.
*/
function mc_project_get_id_from_name( $p_username, $p_password, $p_project_name ) {
$t_user_id = mci_check_login( $p_username, $p_password );

0 comments on commit ed74638

Please sign in to comment.