Skip to content
Browse files

Fix system notice undefined variable days_old

Commit fbd6540 added t_ prefix to some
variables, but did not replace all occurences of the old variable name,
causing SQL syntax error depending on filter

Fixes #16527
  • Loading branch information...
1 parent 9b007bb commit 894743958c3cc1a874760b232de8c019f8fdbd8b @dregad dregad committed Oct 23, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 manage_user_page.php
View
4 manage_user_page.php
@@ -214,7 +214,7 @@
$t_total_user_count = $t_row['user_count'];
} else {
$query = "SELECT count(*) as user_count FROM $t_user_table
- WHERE $t_where AND " . db_helper_compare_days("" . db_now() . "","last_visit","< $days_old")
+ WHERE $t_where AND " . db_helper_compare_days("" . db_now() . "","last_visit","< $t_days_old")
. $t_show_disabled_cond;
$t_result = db_query_bound($query, $t_where_params);
$t_row = db_fetch_array( $t_result );
@@ -243,7 +243,7 @@
} else {
$t_query = "SELECT * FROM $t_user_table
- WHERE $t_where AND " . db_helper_compare_days( "" . db_now() . "", "last_visit", "< $days_old" ) . "
+ WHERE $t_where AND " . db_helper_compare_days( "" . db_now() . "", "last_visit", "< $t_days_old" ) . "
$t_show_disabled_cond
ORDER BY $c_sort $c_dir";
$t_result = db_query_bound($t_query, $t_where_params, $p_per_page, $t_offset );

0 comments on commit 8947439

Please sign in to comment.
Something went wrong with that request. Please try again.