diff --git a/include/admin/Layout.php b/include/admin/Layout.php index fb36eb9..042f911 100644 --- a/include/admin/Layout.php +++ b/include/admin/Layout.php @@ -1110,7 +1110,13 @@ class Layout extends \gp\admin\Addon\Install{ $success = false; } - $this->SaveLayouts(); + if (!empty($_POST['default'])){ + $this->SaveLayouts(false); + $this->curr_layout = $layout_id; + $this->MakeDefault(); + }else{ + $this->SaveLayouts(); + } }