MantisBT: master c13bb527

Author Committer Branch Timestamp Parent
dregad dregad master 2026-09-13 11:52 master aa589903
Affected Issues  0036812: PHP 8.4: Passing E_USER_ERROR to trigger_error() is deprecated
Changeset

Admin checks broken if DB is not connected

Since commit 66a98f103e6795e2e5c6d043fbe8456929191c53, db_connect()
throws an exception, causing the admin check script to abort in an
uncontrolled manner (APPLICATION ERROR 400, Database connection failed).

We catch the exception, just to ignore it - db_is_connected() will do
the job to report the problem and end the script.

Fixes 0036812

mod - admin/check/check_database_inc.php Diff File