Permalink
Browse files

user_api: fix typos and incorrect argument count

It should be $t_last_timestamp_threshold not $c_last_timestamp_threshold
and although it probably would be a good idea to use a seed,
auth_generate_unique_cookie_string() doesn't actually take one.

Conflicts:
	core/user_api.php
	library/adodb
	library/phpmailer
  • Loading branch information...
1 parent 132e1d2 commit 95d4ac31d5b346afa25f4e4f109a7dba0a6f1bca @rlerdorf rlerdorf committed with rombert May 12, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/user_api.php
View
@@ -477,7 +477,7 @@ function user_get_logged_in_user_ids( $p_session_duration_in_minutes ) {
# Execute query
$query = 'SELECT id FROM ' . $t_user_table . ' WHERE last_visit > ' . db_param();
- $result = db_query_bound( $query, array( $c_last_timestamp_threshold ), 1 );
+ $result = db_query_bound( $query, array( $t_last_timestamp_threshold ), 1 );
# Get the list of connected users
$t_users_connected = array();

0 comments on commit 95d4ac3

Please sign in to comment.