mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/12117] Select all fields instead of item_basic_data
PHPBB3-12117
This commit is contained in:
@@ -666,8 +666,6 @@ abstract class nestedset implements \phpbb\tree\tree_interface
|
||||
/**
|
||||
* Get all items from the tree
|
||||
*
|
||||
* Basic data is defined in the $item_basic_data property.
|
||||
*
|
||||
* @param bool $order_asc Order the items ascending by their left_id
|
||||
* @return array Array of items (containing all columns from the item table)
|
||||
* ID => Item data
|
||||
@@ -676,7 +674,7 @@ abstract class nestedset implements \phpbb\tree\tree_interface
|
||||
{
|
||||
$rows = array();
|
||||
|
||||
$sql = 'SELECT ' . implode(', ', $this->item_basic_data) . '
|
||||
$sql = 'SELECT *
|
||||
FROM ' . $this->table_name . ' ' .
|
||||
$this->get_sql_where('WHERE') . '
|
||||
ORDER BY ' . $this->column_left_id . ' ' . ($order_asc ? 'ASC' : 'DESC');
|
||||
|
Reference in New Issue
Block a user