From 32d4082bf83067398b609b93fe23466bea1ae976 Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Wed, 4 Mar 2026 23:31:40 +0100 Subject: [PATCH] db module --- src/App/ModuleManager.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/App/ModuleManager.php b/src/App/ModuleManager.php index 1c2f949..d769a3a 100644 --- a/src/App/ModuleManager.php +++ b/src/App/ModuleManager.php @@ -246,12 +246,11 @@ final class ModuleManager "INSERT INTO nexus_modules (name, title, version, enabled, installed_at, updated_at) VALUES (:name, :title, :version, :enabled, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)" ); - $stmt->execute([ - 'name' => $name, - 'title' => (string)$module['title'], - 'version' => (string)$module['version'], - 'enabled' => false, - ]); + $stmt->bindValue(':name', $name, \PDO::PARAM_STR); + $stmt->bindValue(':title', (string)$module['title'], \PDO::PARAM_STR); + $stmt->bindValue(':version', (string)$module['version'], \PDO::PARAM_STR); + $stmt->bindValue(':enabled', false, \PDO::PARAM_BOOL); + $stmt->execute(); return false; } }