Skip to content

Commit

Permalink
Confirm presence of error variable
Browse files Browse the repository at this point in the history
  • Loading branch information
waldoj committed Dec 26, 2023
1 parent df8b3b2 commit 386ea4e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deploy/tests/bills.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
$error = TRUE;
}

if ($error == TRUE)
if (isset($error) && $error == TRUE)
{
return FALSE;
}
Expand Down
2 changes: 1 addition & 1 deletion deploy/tests/committee_members.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
$error = TRUE;
}

if ($error == TRUE)
if (isset($error) && $error == TRUE)
{
return FALSE;
}
Expand Down
2 changes: 1 addition & 1 deletion deploy/tests/legislators.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@

}

if ($error == TRUE)
if (isset($error) && $error == TRUE)
{
return FALSE;
}
Expand Down

0 comments on commit 386ea4e

Please sign in to comment.