From 699da2be9d9d7a1ffc2e969641f9afc6558dde13 Mon Sep 17 00:00:00 2001 From: alphadevx Date: Tue, 8 Sep 2015 22:28:46 +0100 Subject: [PATCH] #211 - fixed a small bug in the LogoutController affecting a unit test --- Alpha/Controller/LogoutController.php | 4 ++-- Alpha/Controller/TagController.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Alpha/Controller/LogoutController.php b/Alpha/Controller/LogoutController.php index e74150d3..7f1f79fe 100644 --- a/Alpha/Controller/LogoutController.php +++ b/Alpha/Controller/LogoutController.php @@ -110,8 +110,8 @@ public function doGET($request) $config = ConfigProvider::getInstance(); - if ($this->BO instanceof Person) { - self::$logger->debug('Logging out ['.$this->BO->get('email').'] at ['.date('Y-m-d H:i:s').']'); + if ($this->record instanceof Person) { + self::$logger->debug('Logging out ['.$this->record->get('email').'] at ['.date('Y-m-d H:i:s').']'); self::$logger->action('Logout'); } diff --git a/Alpha/Controller/TagController.php b/Alpha/Controller/TagController.php index 58d18db1..936cba5e 100644 --- a/Alpha/Controller/TagController.php +++ b/Alpha/Controller/TagController.php @@ -290,7 +290,7 @@ public function doPOST($request) self::$logger->debug('>>doPOST($request=['.var_export($request, true).'])'); $params = $request->getParams(); -print_r($params); + try { // check the hidden security fields before accepting the form POST data if (!$this->checkSecurityFields()) {