From 3fa6008d6d9c89a73e60c1024d5c22e87f5cf306 Mon Sep 17 00:00:00 2001 From: Lewis Juggins Date: Thu, 10 Oct 2019 17:47:28 +0100 Subject: [PATCH] Fix meal plan start page requirements --- controllers/SystemController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/SystemController.php b/controllers/SystemController.php index 54cdb252..9c873dd6 100644 --- a/controllers/SystemController.php +++ b/controllers/SystemController.php @@ -85,9 +85,9 @@ class SystemController extends BaseController if ($entryPage === 'calendar' && constant('GROCY_FEATURE_FLAG_CALENDAR')) { return '/calendar'; } - + // Meal Plan - if ($entryPage === 'mealplan' && constant('GROCY_FEATURE_FLAG_RECIPES')) { + if ($entryPage === 'mealplan' && constant('GROCY_FEATURE_FLAG_RECIPES') && constant('GROCY_FEATURE_FLAG_CALENDAR')) { return '/mealplan'; }