Skip to content

Commit

Permalink
mysql_functions - Correct user_distinct_pages query
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianZaremba committed Dec 12, 2024
1 parent 1bc0828 commit df6dd83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mysql_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,9 @@ function getCbData($user = '', $nsid = '', $title = '', $timestamp = '')
$res = mysqli_query(
$mw_mysql,
'SET STATEMENT max_statement_time=10 FOR ' .
"SELECT count(distinct rev_page) AS count FROM' .
'SELECT count(distinct rev_page) AS count FROM' .
' `revision_userindex` JOIN `actor` ON `actor_id` = `rev_actor`' .
' WHERE `actor_name` = '" . mysqli_real_escape_string($mw_mysql, $userPage) . "'"
" WHERE `actor_name` = '" . mysqli_real_escape_string($mw_mysql, $userPage) . "'"
);
if ($res !== false) {
$d = mysqli_fetch_assoc($res);
Expand Down

0 comments on commit df6dd83

Please sign in to comment.