PMA_Table::isView(): check context before using $this

This commit is contained in:
Sebastian Mendel
2007-03-22 09:36:50 +00:00
parent e92d08fbc6
commit fe892e763e

View File

@@ -139,11 +139,11 @@ class PMA_Table {
function isView($db = null, $table = null) function isView($db = null, $table = null)
{ {
if (null !== $db && null !== $table) { if (strlen($db) && strlen($table)) {
return PMA_Table::_isView($db, $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; return true;
} }