diff options
Diffstat (limited to 'src/controllers/TreeController.php')
-rw-r--r-- | src/controllers/TreeController.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/controllers/TreeController.php b/src/controllers/TreeController.php index 94ec3210..e4b3cdf7 100644 --- a/src/controllers/TreeController.php +++ b/src/controllers/TreeController.php @@ -6,6 +6,8 @@ namespace PHPPgAdmin\Controller; +use PHPPgAdmin\Interfaces\Recordset; +use ADORecordSet; use PHPPgAdmin\ArrayRecordSet; use PHPPgAdmin\ContainerUtils; use PHPPgAdmin\Decorators\Decorator; @@ -69,7 +71,7 @@ class TreeController extends BaseController /** * Produce JSON data for the browser tree. * - * @param \PHPPgAdmin\Interfaces\Recordset|\ADORecordSet $_treedata a set of records to populate the tree + * @param Recordset|ADORecordSet $_treedata a set of records to populate the tree * @param array $attrs Attributes for tree items * 'text' - the text for the tree node * 'icon' - an icon for node @@ -206,7 +208,7 @@ class TreeController extends BaseController } //ddd($parent); - if (true === $print) { + if ($print) { if (isset($_REQUEST['children'])) { $children = $parent; $parent = ['children' => $children]; |