mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/12117] Select all fields instead of item_basic_data
PHPBB3-12117
This commit is contained in:
parent
c1115d9451
commit
4127f92496
1 changed files with 1 additions and 3 deletions
|
@ -666,8 +666,6 @@ abstract class nestedset implements \phpbb\tree\tree_interface
|
||||||
/**
|
/**
|
||||||
* Get all items from the tree
|
* 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
|
* @param bool $order_asc Order the items ascending by their left_id
|
||||||
* @return array Array of items (containing all columns from the item table)
|
* @return array Array of items (containing all columns from the item table)
|
||||||
* ID => Item data
|
* ID => Item data
|
||||||
|
@ -676,7 +674,7 @@ abstract class nestedset implements \phpbb\tree\tree_interface
|
||||||
{
|
{
|
||||||
$rows = array();
|
$rows = array();
|
||||||
|
|
||||||
$sql = 'SELECT ' . implode(', ', $this->item_basic_data) . '
|
$sql = 'SELECT *
|
||||||
FROM ' . $this->table_name . ' ' .
|
FROM ' . $this->table_name . ' ' .
|
||||||
$this->get_sql_where('WHERE') . '
|
$this->get_sql_where('WHERE') . '
|
||||||
ORDER BY ' . $this->column_left_id . ' ' . ($order_asc ? 'ASC' : 'DESC');
|
ORDER BY ' . $this->column_left_id . ' ' . ($order_asc ? 'ASC' : 'DESC');
|
||||||
|
|
Loading…
Add table
Reference in a new issue