1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 20:13:22 +01: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:
brunoais 2015-03-01 14:01:57 +00:00
parent d66a53a531
commit c887eedaa5

View File

@ -523,7 +523,10 @@ class log implements \phpbb\log\log_interface
$get_logs_sql_ary = array(
'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
AND l.log_time >= ' . (int) $log_time . "
$sql_keywords