Post list fixes
This commit is contained in:
@@ -126,7 +126,7 @@ class Post implements JsonSerializable
|
||||
$stmt->bindValue(":ID", $this->id);
|
||||
try {
|
||||
if (!$stmt->execute()) throw ApiError::failedUpdate(["content"]);
|
||||
} catch (Exception) {
|
||||
} catch (Exception $e) {
|
||||
throw ApiError::failedUpdate(["content"]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user