db module

This commit is contained in:
2026-03-04 23:31:40 +01:00
parent c565bc6b57
commit 32d4082bf8

View File

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