Fixed const name
This commit is contained in:
parent
c3967b9abc
commit
4b2cac054f
@ -39,7 +39,7 @@ class RecipeUserMenu extends BaseModel
|
|||||||
{
|
{
|
||||||
require_once INCLUDES_PATH . '/Const/recipes.php';
|
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'];
|
return ['Day of Week is not valid'];
|
||||||
|
|
||||||
$recipe = RecipeModel::get(array(
|
$recipe = RecipeModel::get(array(
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
define('DAY_OF_WEEKS', array(
|
define('DAYS_OF_WEEK', array(
|
||||||
'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday'
|
'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday'
|
||||||
));
|
));
|
||||||
Loading…
x
Reference in New Issue
Block a user