mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/13661] Fixed the "FROM" in the built query.
I was doing it wrong by giving a string to the FROM clause in the built query. PHPBB3-13661
This commit is contained in:
@@ -523,7 +523,10 @@ class log implements \phpbb\log\log_interface
|
|||||||
|
|
||||||
$get_logs_sql_ary = array(
|
$get_logs_sql_ary = array(
|
||||||
'SELECT' => 'l.*, u.username, u.username_clean, u.user_colour',
|
'SELECT' => 'l.*, u.username, u.username_clean, u.user_colour',
|
||||||
'FROM' => $this->log_table . ' l, ' . USERS_TABLE . ' u',
|
'FROM' => array(
|
||||||
|
$this->log_table => 'l',
|
||||||
|
USERS_TABLE => 'u',
|
||||||
|
),
|
||||||
'WHERE' => 'l.user_id = u.user_id
|
'WHERE' => 'l.user_id = u.user_id
|
||||||
AND l.log_time >= ' . (int) $log_time . "
|
AND l.log_time >= ' . (int) $log_time . "
|
||||||
$sql_keywords
|
$sql_keywords
|
||||||
|
Reference in New Issue
Block a user