diff --git a/VERSION.txt b/VERSION.txt index 6b93b22dd885..3deddf16c2da 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -5.1.44 \ No newline at end of file +5.1.45 \ No newline at end of file diff --git a/app/Utils/HtmlEngine.php b/app/Utils/HtmlEngine.php index 0fe5bf86c501..6f891eeabe4f 100644 --- a/app/Utils/HtmlEngine.php +++ b/app/Utils/HtmlEngine.php @@ -375,7 +375,7 @@ class HtmlEngine $data['$entity_footer'] = ['value' => $this->entity->footer, 'label' => '']; $data['$page_size'] = ['value' => $this->settings->page_size, 'label' => '']; - $data['$page_layout'] = ['value' => $this->settings->page_layout, 'label' => '']; + $data['$page_layout'] = ['value' => property_exists($this->settings, 'page_layout') ? $this->settings->page_layout : 'Portrait', 'label' => '']; $arrKeysLength = array_map('strlen', array_keys($data)); array_multisort($arrKeysLength, SORT_DESC, $data); diff --git a/config/ninja.php b/config/ninja.php index dfa73b5ec103..4c40162c8ce6 100644 --- a/config/ninja.php +++ b/config/ninja.php @@ -14,8 +14,8 @@ return [ 'require_https' => env('REQUIRE_HTTPS', true), 'app_url' => rtrim(env('APP_URL', ''), '/'), 'app_domain' => env('APP_DOMAIN', ''), - 'app_version' => '5.1.44', - 'app_tag' => '5.1.44-release', + 'app_version' => '5.1.45', + 'app_tag' => '5.1.45-release', 'minimum_client_version' => '5.0.16', 'terms_version' => '1.0.1', 'api_secret' => env('API_SECRET', false),