From 70f7e05fe1eeeb83eb1db8e8a70538aa3fba98ca Mon Sep 17 00:00:00 2001 From: NOrtmann1 <145041949+NOrtmann1@users.noreply.github.com> Date: Tue, 9 Jun 2026 15:30:05 +0200 Subject: [PATCH] Update DatabaseArticleManager.php --- php/model/DatabaseArticleManager.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/php/model/DatabaseArticleManager.php b/php/model/DatabaseArticleManager.php index 20c7484..1697071 100644 --- a/php/model/DatabaseArticleManager.php +++ b/php/model/DatabaseArticleManager.php @@ -20,10 +20,8 @@ class DatabaseArticleManager implements ArticleManagerDAO { { if (!file_exists(__DIR__ . '/../../db/articles.db')) { try { - $user = 'root'; - $pw = null; - $dsn = 'sqlite:' . __DIR__ . '/../../db/articles.db'; - $db = new PDO($dsn, $user, $pw); + + $db = $this->getConnection(); $db->exec(" CREATE TABLE articles (