From bd11d7973c71da6bce09fbec62e6ad46c7478469 Mon Sep 17 00:00:00 2001 From: bfb-vserver-wwwdata Date: Mon, 17 Oct 2022 21:35:06 +0200 Subject: [PATCH] server BF --- web/send.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/send.php b/web/send.php index 397c024..3eded5a 100644 --- a/web/send.php +++ b/web/send.php @@ -185,6 +185,6 @@ try catch (Exception $mex) { reportError("Root try-catch triggered", $mex); - if ($pdo->inTransaction()) $pdo->rollBack(); + if ($pdo !== null && $pdo->inTransaction()) $pdo->rollBack(); api_return(500, ['success' => false, 'error' => ERR::INTERNAL_EXCEPTION, 'errhighlight' => -1, 'message' => 'PHP script threw exception.'."\n\n".'Exception: ' . $e->getMessage()]); }