From df6dd8343a0f779e411410ad41bdfb0f61dffea1 Mon Sep 17 00:00:00 2001 From: Damian Zaremba Date: Thu, 12 Dec 2024 14:02:00 +0000 Subject: [PATCH] mysql_functions - Correct user_distinct_pages query --- mysql_functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mysql_functions.php b/mysql_functions.php index 2642cb1..743aa30 100644 --- a/mysql_functions.php +++ b/mysql_functions.php @@ -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);