From 902b41e86cbbccab50abe75cfde0b0751eedb593 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Wed, 16 Mar 2016 22:20:30 +1100 Subject: [PATCH] Fix #12092 PHP Fatal error: Call to undefined function __() Signed-off-by: Madhura Jayaratne --- ChangeLog | 1 + libraries/controllers/database/DatabaseStructureController.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index 92e57f2bf4..49e1639997 100644 --- a/ChangeLog +++ b/ChangeLog @@ -58,6 +58,7 @@ phpMyAdmin - ChangeLog - issue #12085 Like search strings being escaped incorrectly - issue #12092 Rename exported databases/tables doesn't seem to work - issue #12099 Undefined index: controllink +- issue #12092 PHP Fatal error: Call to undefined function __() 4.5.5.1 (2016-02-29) - issue #11971 CREATE UNIQUE INDEX index type is not recognized by parser. diff --git a/libraries/controllers/database/DatabaseStructureController.php b/libraries/controllers/database/DatabaseStructureController.php index 9407f388d0..9a59637770 100644 --- a/libraries/controllers/database/DatabaseStructureController.php +++ b/libraries/controllers/database/DatabaseStructureController.php @@ -868,6 +868,8 @@ class DatabaseStructureController extends DatabaseController */ protected function checkFavoriteTable($current_table) { + // ensure $_SESSION['tmpval']['favorite_tables'] is initialized + RecentFavoriteTable::getInstance('favorite'); foreach ( $_SESSION['tmpval']['favorite_tables'][$GLOBALS['server']] as $value ) {