From f36ba9b4c2fad80e020851d6222fc8c3a7064026 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Sun, 15 Sep 2019 21:09:02 +0100 Subject: [PATCH] format --- functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.inc.php b/functions.inc.php index 8c871919..1dab63ba 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -1728,7 +1728,7 @@ function db_query($sql, array $values = array(), $ignore_errors = false) { } catch (PDOException $e) { $error_text = "Invalid query: " . $e->getMessage() . " caused by " . $sql ; error_log($error_text); - if(defined('PHPUNIT_TEST')) { + if (defined('PHPUNIT_TEST')) { throw new Exception("SQL query failed: {{{$sql}}} with " . json_encode($values) . ". Error message: " . $e->getMessage()); } if (!$ignore_errors) {