From 6cf128bca86ce56e22bba2d485e7aa8e5f293951 Mon Sep 17 00:00:00 2001 From: Alex Parsons Date: Thu, 4 Jan 2024 14:25:46 +0000 Subject: [PATCH] fixup! Catch if TESTING not defined --- classes/Policies.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Policies.php b/classes/Policies.php index 20b49e45a1..a4c3bc96e2 100644 --- a/classes/Policies.php +++ b/classes/Policies.php @@ -31,7 +31,7 @@ class Policies { public function __construct($policy_id = null) { $this->db = new \ParlDB; - if (!(defined('TESTING') && TESTING == true)) { + if (defined('TESTING') && TESTING == true) { $policy_data = json_decode(file_get_contents(dirname(__FILE__) . '/../tests/policies.json'), true); } else { $policy_data = json_decode(file_get_contents(RAWDATA . '/scrapedjson/policies.json'), true);