[FIX]Hide database informations on connection error Opencart 3.x
---How to use the fix ("Installation")---
To "install" choose the correct version and just unpack the folder/files (the system/ folder) in the webroot and overwrite the file.
NOTE that It overwrites the CORE opencart file framework.php
The default installation of Opencart 3.x is sending to the output your private Database informations if you are not hiding the errors.
It must be the default on production but for sure we can sometimes forget about it.
This is Workaround that hides the informations even if the other debug information are still shown and it works even if you forget to hide the errors.
Some of the open issues.
---Is it risky?---
It should not interfere with anything except very rare cases and in those cases you must know for sure what you are doing.
If you want to roll back just overwrite with the original system/framework.php file