diff --git a/CHANGELOG.md b/CHANGELOG.md index fa8ebb16..9a7e4c41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ - Release v2.1.5-2023.09 🎉 - Fixed cache directory auto-creating with SQLite [\#247](https://github.com/torrentpier/torrentpier-lts/pull/247) ([belomaxorka](https://github.com/belomaxorka)) -- Minor improvements [\#245](https://github.com/torrentpier/torrentpier-lts/pull/245), [\#246](https://github.com/torrentpier/torrentpier-lts/pull/246) ([belomaxorka](https://github.com/belomaxorka)) +- Minor improvements [\#245](https://github.com/torrentpier/torrentpier-lts/pull/245), [\#246](https://github.com/torrentpier/torrentpier-lts/pull/246), [\#248](https://github.com/torrentpier/torrentpier-lts/pull/248) ([belomaxorka](https://github.com/belomaxorka)) ## [v2.1.5-2023.08-HotFix](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.08-HotFix) (2023-09-17) [Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.08...v2.1.5-2023.08-HotFix) diff --git a/library/includes/functions_dev.php b/library/includes/functions_dev.php index 4ea68804..83b43128 100644 --- a/library/includes/functions_dev.php +++ b/library/includes/functions_dev.php @@ -15,11 +15,11 @@ function get_sql_log () foreach ($CACHES->obj as $cache_name => $cache_obj) { - if (!empty($cache_obj->db)) + if (!empty($cache_obj->db->dbg)) { $log .= get_sql_log_html($cache_obj->db, "cache: $cache_name [{$cache_obj->db->engine}]"); } - elseif (!empty($cache_obj->engine)) + elseif (!empty($cache_obj->dbg)) { $log .= get_sql_log_html($cache_obj, "cache: $cache_name [{$cache_obj->engine}]"); } @@ -29,11 +29,11 @@ function get_sql_log () if (!empty($datastore->db->dbg)) { - $log .= get_sql_log_html($datastore->db, 'cache: datastore ['.$datastore->engine.']'); + $log .= get_sql_log_html($datastore->db, "cache: datastore [{$datastore->db->engine}]"); } else if(!empty($datastore->dbg)) { - $log .= get_sql_log_html($datastore, 'cache: datastore ['.$datastore->engine.']'); + $log .= get_sql_log_html($datastore, "cache: datastore [{$datastore->engine}]"); } return $log;