Merge pull request #137 from ThomasRubini/recipe_contr_login

This commit is contained in:
Thomas Rubini 2023-01-26 19:23:39 +01:00 committed by GitHub
commit 1855231de3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ final class RecipeController
View::show("recipe/view", array(
"ADMIN" => Session::is_admin(),
"USER_ID" => $_SESSION["ID"],
"USER_ID" => Session::is_login() ? $_SESSION["ID"] : null,
"RECIPE" => $O_recipe
));
}