**Description**

A clear and concise description of what the reported bug is:

```
Fatal error: Uncaught TypeError: extract(): Argument #1 ($array) must be of type array, null given in /home/stpaul10/church.stpaulandresurrection.org/ListEvents.php:118 Stack trace: #0 /home/stpaul10/church.stpaulandresurrection.org/ListEvents.php(118): extract(NULL) #1 {main} thrown in /home/stpaul10/church.stpaulandresurrection.org/ListEvents.php on line 118
```

- ChurchCRM version: 5.7.0
- PHP version the server running: 8.2.16
- DB Server and Version the server is running: not relevant

**Steps To Reproduce**

Steps to reproduce the behavior:

Load /ListEvents.php

**Expected behavior**

A clear and concise description of what you expected to happen.

Do not see a fatal error

**Screenshots and/or logs**

If applicable, please include screenshots or share logs to assist in explaining your issue.

📋 Relevant screenshots:

<img width="1032" alt="image" src="https://github.com/ChurchCRM/CRM/assets/5031018/5c6a2938-3688-4086-a1f8-d9ebcd71b304">

Bug: Fatal error when listing null events
This is a GitHub Issue
repo:CRM
owner:ChurchCRM
Title : Bug: Fatal error when listing null events
Issue date:

--- start body ---
**Description**

A clear and concise description of what the reported bug is:

```
Fatal error: Uncaught TypeError: extract(): Argument #1 ($array) must be of type array, null given in /home/stpaul10/church.stpaulandresurrection.org/ListEvents.php:118 Stack trace: #0 /home/stpaul10/church.stpaulandresurrection.org/ListEvents.php(118): extract(NULL) #1 {main} thrown in /home/stpaul10/church.stpaulandresurrection.org/ListEvents.php on line 118
```

- ChurchCRM version: 5.7.0
- PHP version the server running: 8.2.16
- DB Server and Version the server is running: not relevant

**Steps To Reproduce**

Steps to reproduce the behavior:

Load /ListEvents.php

**Expected behavior**

A clear and concise description of what you expected to happen.

Do not see a fatal error

**Screenshots and/or logs**

If applicable, please include screenshots or share logs to assist in explaining your issue.

📋 Relevant screenshots:

<img width="1032" alt="image" src="https://github.com/ChurchCRM/CRM/assets/5031018/5c6a2938-3688-4086-a1f8-d9ebcd71b304">

--- end body ---
