Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f7321863e6 | |||
| d21691a548 |
@@ -747,6 +747,7 @@ class TicketModel {
|
|||||||
];
|
];
|
||||||
|
|
||||||
foreach ($children as $sql) {
|
foreach ($children as $sql) {
|
||||||
|
try {
|
||||||
$stmt = $this->conn->prepare($sql);
|
$stmt = $this->conn->prepare($sql);
|
||||||
if (!$stmt) continue;
|
if (!$stmt) continue;
|
||||||
// ticket_dependencies uses two placeholders
|
// ticket_dependencies uses two placeholders
|
||||||
@@ -757,6 +758,12 @@ class TicketModel {
|
|||||||
}
|
}
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
$stmt->close();
|
$stmt->close();
|
||||||
|
} catch (mysqli_sql_exception $e) {
|
||||||
|
// Skip optional tables that may not exist in all deployments
|
||||||
|
if (strpos($e->getMessage(), "doesn't exist") === false) {
|
||||||
|
throw $e;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$stmt = $this->conn->prepare("DELETE FROM tickets WHERE ticket_id = ?");
|
$stmt = $this->conn->prepare("DELETE FROM tickets WHERE ticket_id = ?");
|
||||||
|
|||||||
Reference in New Issue
Block a user