Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/controllers/TreeController.php')
-rw-r--r--src/controllers/TreeController.php6
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];