Fixed const name

This commit is contained in:
Stepan 2025-06-29 00:53:28 +02:00
parent c3967b9abc
commit 4b2cac054f
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class RecipeUserMenu extends BaseModel
{
require_once INCLUDES_PATH . '/Const/recipes.php';
if(!in_array($this->field_dayofweek, DAY_OF_WEEKS))
if(!in_array($this->field_dayofweek, DAYS_OF_WEEK))
return ['Day of Week is not valid'];
$recipe = RecipeModel::get(array(

View File

@ -1,5 +1,5 @@
<?php
define('DAY_OF_WEEKS', array(
define('DAYS_OF_WEEK', array(
'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday'
));