From afcf1e6bbee7c7a1720df0e61b2ef64a925b8f0b Mon Sep 17 00:00:00 2001 From: Adnan Date: Thu, 19 Aug 2010 17:31:01 +0500 Subject: [PATCH] Automatic Foreign/Internal Layout fix --- libraries/schema/User_Schema.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/schema/User_Schema.class.php b/libraries/schema/User_Schema.class.php index 93b5c9dad..7739ce340 100644 --- a/libraries/schema/User_Schema.class.php +++ b/libraries/schema/User_Schema.class.php @@ -58,8 +58,8 @@ class PMA_User_Schema break; case 'createpage': $this->pageNumber = PMA_REL_create_page($_POST['newpage'], $cfgRelation, $db, $query_default_option); - $this->autoLayoutForeign = $_POST['auto_layout_foreign']; - $this->autoLayoutInternal = $_POST['auto_layout_internal']; + $this->autoLayoutForeign = isset($_POST['auto_layout_foreign']) ? "1":NULL; + $this->autoLayoutInternal = isset($_POST['auto_layout_internal']) ? "1":NULL; $this->processRelations($db, $this->pageNumber,$cfgRelation,$query_default_option); break; case 'edcoord': @@ -702,7 +702,7 @@ class PMA_User_Schema } } - if (isset($this->autoLayoutInternal) || isset($this->auto_layout_foreign)) { + if (isset($this->autoLayoutInternal) || isset($this->autoLayoutForeign)) { $this->addRelationCoordinates($all_tables,$pageNumber,$db, $cfgRelation,$query_default_option); }