diff options
Diffstat (limited to 'view_meal.php')
| -rw-r--r-- | view_meal.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/view_meal.php b/view_meal.php index c5da293..028c01c 100644 --- a/view_meal.php +++ b/view_meal.php @@ -22,7 +22,7 @@ if ( isset($_POST['action']) && ($_POST['action'] == "viewMeal") ) { # meals was to simply stick an option in the "Favorites" menu in the # left sidebar, and that form directs the user here. if ( isset($_POST['meal']) && $_POST['meal'] == "viewAllMeals" ) { - header("Location: {$config->_rootUri}/list_meals.php"); + header("Location: {$config->_rootUri}/list_meals"); exit; } else { header("Location: {$config->_rootUri}/{$config->_thisScript}?meal={$_POST['meal']}&action=viewMeal"); @@ -84,7 +84,7 @@ if ( $_GET['meal'] == "0" ) { # only increment the counter if the previous page was food_search.php because # we don't want to increment the popularity while a user is just browsing around # in their own foods, but only if they got here from a search. -if ( strpos($config->_previousUri, "food_search.php") ) { +if ( strpos($config->_previousUri, "food_search") ) { incrementPopularityCounter($_GET['meal'], "userMeals"); } @@ -137,7 +137,7 @@ foreach ( $db->_rows as $row ) { foreach ( $currentMeal as $food ) { # add the description of this food to the array - $mealData['columnTitles'][] = "<a href='view_food.php?food={$food['food']}&weight={$food['weight']}&quantity={$food['quantity']}&description={$food['description']}&action=viewFood' class='whiteLink'>{$food['description']}</a>"; + $mealData['columnTitles'][] = "<a href='view_food?food={$food['food']}&weight={$food['weight']}&quantity={$food['quantity']}&description={$food['description']}&action=viewFood' class='whiteLink'>{$food['description']}</a>"; # do things a little different if the user is logged in if ( isLoggedIn() ) { |
