diff options
author | Felipe Figueroa <amenadiel@gmail.com> | 2021-03-25 13:00:58 +0300 |
---|---|---|
committer | Felipe Figueroa <amenadiel@gmail.com> | 2021-03-25 13:00:58 +0300 |
commit | ab85b1b8eff0e21f09d7fef3f624c0c89d739193 (patch) | |
tree | be4cc542976980b513740b9ca729b65f9b51cdf2 /src/controllers/HistoryController.php | |
parent | 6ecd16dd63bde1148f1e3d07fd0af7aa5eda4e13 (diff) |
typehint iteratoraggregate for printTablefeature/bugfixes_from_wrong_bisect
Diffstat (limited to 'src/controllers/HistoryController.php')
-rw-r--r-- | src/controllers/HistoryController.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/controllers/HistoryController.php b/src/controllers/HistoryController.php index 3f66a288..e15c2457 100644 --- a/src/controllers/HistoryController.php +++ b/src/controllers/HistoryController.php @@ -1,7 +1,7 @@ <?php /** - * PHPPgAdmin 6.1.3 + * PHPPgAdmin6 */ namespace PHPPgAdmin\Controller; @@ -27,6 +27,8 @@ class HistoryController extends BaseController /** * Default method to render the controller according to the action parameter. + * + * @return null|string */ public function render() { @@ -64,8 +66,8 @@ class HistoryController extends BaseController // Set the name of the window $this->setWindowName('history'); - $this->view->offsetSet('excludeJsTree',true); - $this->view->offsetSet('inPopUp',true); + $this->view->offsetSet('excludeJsTree', true); + $this->view->offsetSet('inPopUp', true); return $this->printFooter(true, 'footer_sqledit.twig'); } @@ -140,7 +142,9 @@ class HistoryController extends BaseController ], ]; - echo $this->printTable($history, $columns, $actions, 'history-history', $this->lang['strnohistory']); + if (self::isRecordset($history)) { + echo $this->printTable($history, $columns, $actions, 'history-history', $this->lang['strnohistory']); + } } else { echo \sprintf( '<p>%s</p>', |