From 3b1e2d68dcf06a3bf58dbb954aff7c1d72043ff5 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 22 Mar 2009 12:25:17 +0000 Subject: [PATCH] patch #2682833 [core] Fatal error: Call to a member function isDisplayed() --- ChangeLog | 2 ++ libraries/Error_Handler.class.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d836601c7..9f81897f1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,8 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA - rfe #2127983 Readd documentation link, it does not protect against anything. - bug #1675249 [doc] Apache reverse proxy and cookies FAQ - bug #2682140 UUID() and CURRENT_USER() should not accept arguments +- patch #2682833 [core] Fatal error: Call to a member function isDisplayed(), + thanks to Christian Rodriguez - judas_iscariote 3.1.3.0 (2009-02-28) + [lang] Turkish update, thanks to Burak Yavuz diff --git a/libraries/Error_Handler.class.php b/libraries/Error_Handler.class.php index c6cf24ada..0279bd4e6 100644 --- a/libraries/Error_Handler.class.php +++ b/libraries/Error_Handler.class.php @@ -57,7 +57,7 @@ class PMA_Error_Handler } else { // remember only not displayed errors foreach ($this->_errors as $key => $error) { - if (! $error->isDisplayed()) { + if (($error instanceof PMA_Error) && ! $error->isDisplayed()) { $_SESSION['errors'][$key] = $error; } }