From 13d9ff17c9b83f7fe579b4957302593a5b8cf0d0 Mon Sep 17 00:00:00 2001 From: vol-au-vent Date: Thu, 9 Jan 2014 14:59:39 +0100 Subject: [PATCH] Update AdminController.php One error at line 80 : "if(!$this->usersTable){...}" Error : Undefined property: Auth\Controller\AdminController::$usersTable To fix that you can replace by : if(!isset($this->usersTable)){...} --- module/Auth/src/Auth/Controller/AdminController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/Auth/src/Auth/Controller/AdminController.php b/module/Auth/src/Auth/Controller/AdminController.php index 16ff2c49..28859ce3 100644 --- a/module/Auth/src/Auth/Controller/AdminController.php +++ b/module/Auth/src/Auth/Controller/AdminController.php @@ -77,7 +77,7 @@ public function deleteAction() public function getUsersTable() { // I have a Table data Gateway ready to go right out of the box - if (!$this->usersTable) { + if (!isset($this->usersTable)) { $this->usersTable = new TableGateway( 'users', $this->getServiceLocator()->get('Zend\Db\Adapter\Adapter') @@ -87,4 +87,4 @@ public function getUsersTable() } return $this->usersTable; } -} \ No newline at end of file +}