Fixed that the wrong FEATURE_FLAG was used (references #552)

This commit is contained in:
Bernd Bestel 2020-02-09 17:28:49 +01:00
parent 1953a26d7f
commit 785dd30724
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -103,7 +103,7 @@ class CalendarService extends BaseService
}
$mealPlanRecipeEvents = array();
if (GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING)
if (FEATURE_FLAG_RECIPES)
{
$recipes = $this->Database->recipes();
$mealPlanDayRecipes = $this->Database->recipes()->where('type', 'mealplan-day');