From fe892e763e36744cc0add0f46991929bf678b01a Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Thu, 22 Mar 2007 09:36:50 +0000 Subject: [PATCH] PMA_Table::isView(): check context before using $this --- libraries/Table.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/Table.class.php b/libraries/Table.class.php index 38c289bac..8e851a3cc 100644 --- a/libraries/Table.class.php +++ b/libraries/Table.class.php @@ -139,11 +139,11 @@ class PMA_Table { function isView($db = null, $table = null) { - if (null !== $db && null !== $table) { + if (strlen($db) && strlen($table)) { return PMA_Table::_isView($db, $table); } - if (strpos($this->get('TABLE TYPE'), 'VIEW')) { + if (isset($this) && strpos($this->get('TABLE TYPE'), 'VIEW')) { return true; }