mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
Silence debug prints clearly not meant for CLI
- FIX: e_array::unserialize() HTML vomit in CLI mode - FIX: e107_debug_shutdown() HTML vomit because $error_handler was not global
This commit is contained in:
@@ -457,7 +457,7 @@ class e_array {
|
||||
|
||||
// e107::getDebug()->log("Json data found");
|
||||
|
||||
if(json_last_error() != JSON_ERROR_NONE && (e_DEBUG === true))
|
||||
if(json_last_error() != JSON_ERROR_NONE && e_DEBUG === true && !e107::isCli())
|
||||
{
|
||||
echo "<div class='alert alert-danger'><h4>e107::unserialize() Parser Error (json)</h4></div>";
|
||||
echo "<pre>";
|
||||
|
Reference in New Issue
Block a user