toggleLike($articleId, $userEmail); header("Location: ../../index.php?pfad=showArticle&id=" . $articleId); exit(); } catch (NotFoundException $e) { $_SESSION["message"] = "missing_id"; header("Location: ../../index.php"); exit(); } catch (Exception $e) { $_SESSION["message"] = "internal_error"; header("Location: ../../index.php"); exit(); } } else { $_SESSION["message"] = "missing_id"; header("Location: ../../index.php"); exit(); } ?>