From cc92210249d1ee2acbdeee8cd78306e3572669d1 Mon Sep 17 00:00:00 2001 From: Greg Aker Date: Wed, 17 Nov 2010 20:25:08 -0600 Subject: Fix #237 get_instance() was being called in the output class before the CI_Controller exists. --- system/core/Output.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/core') diff --git a/system/core/Output.php b/system/core/Output.php index 27a3a4bb0..0b708e110 100644 --- a/system/core/Output.php +++ b/system/core/Output.php @@ -214,7 +214,7 @@ class CI_Output { global $BM, $CFG; // Grab the super object if we can. - if (function_exists('get_instance')) + if (class_exists('CI_Controller')) { $CI =& get_instance(); } -- cgit v1.2.3-24-g4f1b