Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PHP error from a failed database connection #7815

Merged

Commits on Jul 31, 2023

  1. Fix PHP error from a failed database connection

    PHP 8.1+ will generate the following error upon a failed database connection:
    ```
    PHP Fatal error:  Uncaught TypeError: mysqli_error(): Argument #1 ($mysql) must be of type mysqli, null given in /Sources/Errors.php:464
    ```
    
    To fix this, I built a wrapper to check to ensure that the we don't have a null argument going into the related function.  Instead if its null and the primary connection is null, it returns a empty string, which is what the code seems to expect.
    jdarwood007 committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    40d4cd3 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2023

  1. check check

    jdarwood007 committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    c98729c View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2023

  1. Inverted logic

    jdarwood007 committed Aug 18, 2023
    Configuration menu
    Copy the full SHA
    baf4050 View commit details
    Browse the repository at this point in the history