PHP 8.2 COMPATIBILITY UPDATE
=============================

This build preserves the existing page design, routes and business logic.
Compatibility changes are limited to sessions, PHP 8.2 runtime behavior,
legacy MySQL behavior, null/undefined warnings, and known fatal paths.

- guarded session initialization before output
- PHP 8.1+ MySQLi exceptions disabled for legacy false-return behavior
- SET SESSION sql_mode='' on every app database connection (strict mode off)
- UTF-8 connection collation normalized
- grid query helper dynamic property fixed for PHP 8.2
- common trim()/ucwords() null/undefined cases guarded
- known PHPMailer include paths corrected
- order confirmation duplicate order-number scalar-subquery failure prevented
- dashboard query results checked before fetch operations
- mbstring-dependent calls have safe fallbacks where used by app code

Database credentials in env/main_config.php are preserved from the uploaded source.
If your VPS database credentials differ, update only the mysqli_connect values.
