summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/errors/error_general.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/errors/error_general.php b/application/errors/error_general.php
index 7dac0c529..14e5e7a2e 100644
--- a/application/errors/error_general.php
+++ b/application/errors/error_general.php
@@ -1,7 +1,7 @@
<?php
// fancy error page only works if we can load helpers
-if (class_exists("CI_Controller") && !isset($GLOBALS["is_error_page"])) {
+if (class_exists("CI_Controller") && !isset($GLOBALS["is_error_page"]) && isset(get_instance()->load)) {
if (!isset($title)) {
$title = "Error";
}