aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/tree
diff options
context:
space:
mode:
authorMatt Friedman <maf675@gmail.com>2014-03-10 16:06:53 -0700
committerMatt Friedman <maf675@gmail.com>2014-03-10 16:06:53 -0700
commit4127f92496c4e85a43b7813461732e0e2e739c14 (patch)
tree5794dbdc79a4ea5296c327d68040da9d419df77c /phpBB/phpbb/tree
parentc1115d9451fd028a434c9581567038e61f49acf7 (diff)
downloadforums-4127f92496c4e85a43b7813461732e0e2e739c14.tar
forums-4127f92496c4e85a43b7813461732e0e2e739c14.tar.gz
forums-4127f92496c4e85a43b7813461732e0e2e739c14.tar.bz2
forums-4127f92496c4e85a43b7813461732e0e2e739c14.tar.xz
forums-4127f92496c4e85a43b7813461732e0e2e739c14.zip
[ticket/12117] Select all fields instead of item_basic_data
PHPBB3-12117
Diffstat (limited to 'phpBB/phpbb/tree')
-rw-r--r--phpBB/phpbb/tree/nestedset.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/phpBB/phpbb/tree/nestedset.php b/phpBB/phpbb/tree/nestedset.php
index c4ab3b0740..2bfb65732d 100644
--- a/phpBB/phpbb/tree/nestedset.php
+++ b/phpBB/phpbb/tree/nestedset.php
@@ -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');