diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-06-16 00:12:56 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-06-16 00:12:56 +0200 |
commit | 0140ddd510edffb901b98de6b80676ece183760c (patch) | |
tree | 62e4e2d65cca06a1fa8fcba6e2f2b73cc1196b79 /system/libraries | |
parent | 58ae971ba248cf3e32a139088c3833c9735028de (diff) |
Fix issue #318 + added a default to the switch() in CI_Output::minify()
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Profiler.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/system/libraries/Profiler.php b/system/libraries/Profiler.php index d96088c14..1e961f6df 100644 --- a/system/libraries/Profiler.php +++ b/system/libraries/Profiler.php @@ -116,6 +116,12 @@ class CI_Profiler { */ public function set_sections($config) { + if (isset($config['query_toggle_count'])) + { + $this->_query_toggle_count = (int) $config['query_toggle_count']; + unset($config['query_toggle_count']); + } + foreach ($config as $method => $enable) { if (in_array($method, $this->_available_sections)) |