do not query user id if not login

This commit is contained in:
Thomas Rubini 2023-01-26 19:23:20 +01:00
parent 7e63369481
commit dea9dcb80f
No known key found for this signature in database
GPG Key ID: C7D287C8C1CAC373

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
));
}