From 7a744a8ba8f07ba1ec3a48f1d5de641b4025ce20 Mon Sep 17 00:00:00 2001 From: Phil Sturgeon Date: Sat, 23 Jun 2012 17:21:00 +0100 Subject: If there is no output then no need to try minifying it --- system/core/Output.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system/core/Output.php b/system/core/Output.php index 4fdf18f14..5ec8c4bc0 100644 --- a/system/core/Output.php +++ b/system/core/Output.php @@ -625,6 +625,11 @@ class CI_Output { $size_before = strlen($output); + if ($size_before === 0) + { + return ''; + } + // Find all the
,,