From 386ea4ed5dae644f3365144e8d667f83b8f57bdf Mon Sep 17 00:00:00 2001 From: Waldo Jaquith Date: Mon, 25 Dec 2023 22:14:21 -0500 Subject: [PATCH] Confirm presence of error variable --- deploy/tests/bills.php | 2 +- deploy/tests/committee_members.php | 2 +- deploy/tests/legislators.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/tests/bills.php b/deploy/tests/bills.php index 049f20c..b7256b2 100644 --- a/deploy/tests/bills.php +++ b/deploy/tests/bills.php @@ -37,7 +37,7 @@ $error = TRUE; } -if ($error == TRUE) +if (isset($error) && $error == TRUE) { return FALSE; } diff --git a/deploy/tests/committee_members.php b/deploy/tests/committee_members.php index 95f7b39..0d0d848 100644 --- a/deploy/tests/committee_members.php +++ b/deploy/tests/committee_members.php @@ -76,7 +76,7 @@ $error = TRUE; } -if ($error == TRUE) +if (isset($error) && $error == TRUE) { return FALSE; } diff --git a/deploy/tests/legislators.php b/deploy/tests/legislators.php index aec35f8..bac722a 100644 --- a/deploy/tests/legislators.php +++ b/deploy/tests/legislators.php @@ -73,7 +73,7 @@ } -if ($error == TRUE) +if (isset($error) && $error == TRUE) { return FALSE; }