From 4b4f032046e3fb1efced9931cdb7e66abdd9926f Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Wed, 28 Oct 2015 18:42:34 +1100 Subject: [PATCH] Fix #11614 Undefined variable: db Signed-off-by: Madhura Jayaratne --- ChangeLog | 1 + libraries/controllers/DatabaseStructureController.class.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3b3e1ebc3e..bcc9a0741d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,7 @@ phpMyAdmin - ChangeLog - issue #11610 Undefined variable: res_rel - issue #11611 Warning while exporting schema to PDF - issue #11612 Undefined index: new_row_format +- issue #11614 Undefined variable: db 4.5.1.0 (2015-10-23) - issue Invalid argument supplied for foreach() diff --git a/libraries/controllers/DatabaseStructureController.class.php b/libraries/controllers/DatabaseStructureController.class.php index 4b4162d324..21f4a04f2a 100644 --- a/libraries/controllers/DatabaseStructureController.class.php +++ b/libraries/controllers/DatabaseStructureController.class.php @@ -475,7 +475,8 @@ class DatabaseStructureController extends DatabaseController $this->response->addHTML( Template::get('database/structure/table_header')->render( array( - 'db_is_system_schema' => false, + 'db' => $this->db, + 'db_is_system_schema' => $this->_db_is_system_schema, 'replication' => $GLOBALS['replication_info']['slave']['status'] ) )