[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( $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