From 8ea79e56e7fb0ea51509b9af6df80a03a87084a3 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 22 Jan 2025 19:26:25 -0700 Subject: [PATCH] Replace exit; with return false; --- resources/classes/database.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/classes/database.php b/resources/classes/database.php index 0f487209ce..3adcc9dba5 100644 --- a/resources/classes/database.php +++ b/resources/classes/database.php @@ -736,7 +736,7 @@ echo "
";
 					print_r($backtrace);
 					echo "
"; - exit; + return false; } //query table store to see if the table exists @@ -1572,7 +1572,7 @@ if (!$this->db) { echo "Connection Failed
\n"; echo "line number ".__line__."
\n"; - exit; + return false; } //set the error mode @@ -2200,7 +2200,7 @@ echo $sql."
\n"; echo 'Caught exception: '. $e->getMessage()."

\n"; echo $sql. "

\n"; - exit; + return false; } //set the action @@ -2526,7 +2526,7 @@ echo $sql."
\n"; echo 'Caught exception: '. $e->getMessage()."

\n"; echo $sql. "

\n"; - exit; + return false; } } @@ -2908,7 +2908,7 @@ } catch(PDOException $e) { echo $e->getMessage(); - exit; + return false; } } return $this->message;