Skip to content

Commit

Permalink
Use correct function name db_param_push()
Browse files Browse the repository at this point in the history
Commit fbc379f referenced the wrong
name db_push_param().

Issue #20479
  • Loading branch information
dregad committed May 23, 2016
1 parent fa4f795 commit f3ab14c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/user_api.php
Expand Up @@ -271,7 +271,7 @@ function user_is_email_unique( $p_email, $p_user_id = null ) {

$p_email = trim( $p_email );

db_push_param();
db_param_push();
if ( $p_user_id === null ) {
$t_query = 'SELECT email FROM {user} WHERE email=' . db_param();
$t_result = db_query( $t_query, array( $p_email ), 1 );
Expand Down Expand Up @@ -818,7 +818,7 @@ function user_get_id_by_email( $p_email ) {
* @return array The user ids or an empty array.
*/
function user_get_enabled_ids_by_email( $p_email ) {
db_push_param();
db_param_push();
$t_query = 'SELECT * FROM {user} WHERE email=' . db_param() .
' AND enabled=' . db_param() . ' ORDER BY access_level DESC';
$t_result = db_query( $t_query, array( $p_email, 1 ) );
Expand Down

0 comments on commit f3ab14c

Please sign in to comment.