fixed old bugs regarding changed db specs
Deploy vintagecoding.net / deploy (push) Canceled after 0s

This commit is contained in:
2025-07-18 17:29:13 -06:00
parent d3fa1733f4
commit 3fd06953fc
2 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -267,7 +267,7 @@ class Thought extends Post
$this->thought = $thought;
if ($id < 0) {
$stmt = 'INSERT INTO post (id, parentSpace, creator, postType, status, thought) VALUES (?, ?, ?, ?, ?, ?)';
$stmt = 'INSERT INTO post (id, space, creator, postType, status, thought) VALUES (?, ?, ?, ?, ?, ?)';
parent::setId($id * -1);
$space = isset($space) ? $space->getId() : $creator->getHomeSpace()->getId();
exec_stmt($stmt, 'iiiiis', $id * -1, $space, $creator->getId(), 3, 2, $this->thought);