Completed web programming project #44
@ -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(
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
|
||||
define('DAY_OF_WEEKS', array(
|
||||
define('DAYS_OF_WEEK', array(
|
||||
'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday'
|
||||
));
|
||||
Loading…
x
Reference in New Issue
Block a user