commit | 7a744a8ba8f07ba1ec3a48f1d5de641b4025ce20 | [log] [tgz] |
---|---|---|
author | Phil Sturgeon <email@philsturgeon.co.uk> | Sat Jun 23 17:21:00 2012 +0100 |
committer | Phil Sturgeon <email@philsturgeon.co.uk> | Sat Jun 23 17:21:00 2012 +0100 |
tree | d41a96e51eff496a86262e0bfa810436622375ba | |
parent | f82b92999e8309155df3e665e25a261c26b0e93d [diff] |
If there is no output then no need to try minifying it
diff --git a/system/core/Output.php b/system/core/Output.php index 4fdf18f..5ec8c4b 100644 --- a/system/core/Output.php +++ b/system/core/Output.php
@@ -625,6 +625,11 @@ $size_before = strlen($output); + if ($size_before === 0) + { + return ''; + } + // Find all the <pre>,<code>,<textarea>, and <javascript> tags // We'll want to return them to this unprocessed state later. preg_match_all('{<pre.+</pre>}msU', $output, $pres_clean);