summaryrefslogtreecommitdiffstats
path: root/application/errors
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-05-12 15:29:13 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-05-12 15:54:10 +0200
commita252d6c6fbd2b9989ab630d74ef476fb9e54bcc6 (patch)
tree201bda70f142e844d4aac752628e6a41bbf43e23 /application/errors
parent7ff360ae87cf728b862bcc6e9e8f445abc9ef52f (diff)
Fix uncaught exception in error page
Can be triggered by accessing an unknown page like /file/foobar Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/errors')
-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";
}