1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-02 04:24:56 +02:00

[ticket/11495] Manually specify the table columns

PHPBB3-11495
This commit is contained in:
Joas Schilling 2013-04-18 00:54:26 +02:00
parent 514bcb2fac
commit a183fc1118

@ -157,8 +157,8 @@ abstract class phpbb_nestedset_base implements phpbb_nestedset_interface
* siblings between the current spot and the target then the
* item will move as far as possible
*/
$sql = 'SELECT ' . implode(', ', $this->table_columns) . '
FROM ' . $this->table_name . '
$sql = "SELECT {$this->column_item_id}, {$this->column_parent_id}, {$this->column_left_id}, {$this->column_right_id}, {$this->column_item_parents}
FROM " . $this->table_name . '
WHERE ' . $this->column_parent_id . ' = ' . (int) $item[$this->column_parent_id] . '
' . $this->get_sql_where() . '
AND ';