diff options
author | k4be <k4be+gogs@k4be.pl> | 2023-10-29 12:14:09 +0100 |
---|---|---|
committer | k4be <k4be+gogs@k4be.pl> | 2023-10-29 12:14:09 +0100 |
commit | 3d885eaa50a1ed7d179124fa08925c295b9940ae (patch) | |
tree | 23ff658b9fb50bd62e89d3a88361cd6f29889e31 | |
parent | 99ae1c8a79a84c17e5e9b6f1c44e1fbf4699f974 (diff) | |
download | stikked-fit-3d885eaa50a1ed7d179124fa08925c295b9940ae.tar.gz stikked-fit-3d885eaa50a1ed7d179124fa08925c295b9940ae.tar.bz2 stikked-fit-3d885eaa50a1ed7d179124fa08925c295b9940ae.zip |
Fix /cron for php8
-rw-r--r-- | htdocs/system/core/Output.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/htdocs/system/core/Output.php b/htdocs/system/core/Output.php index 3cda062..9bb9066 100644 --- a/htdocs/system/core/Output.php +++ b/htdocs/system/core/Output.php @@ -454,7 +454,7 @@ class CI_Output { if ($this->parse_exec_vars === TRUE) { $memory = round(memory_get_usage() / 1024 / 1024, 2).'MB'; - $output = str_replace(array('{elapsed_time}', '{memory_usage}'), array($elapsed, $memory), $output); + $output = $output ? str_replace(array('{elapsed_time}', '{memory_usage}'), array($elapsed, $memory), $output) : ''; } // -------------------------------------------------------------------- |