diff options
author | Florian Pritz <bluewind@xinu.at> | 2017-05-12 15:29:13 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2017-05-12 15:54:10 +0200 |
commit | a252d6c6fbd2b9989ab630d74ef476fb9e54bcc6 (patch) | |
tree | 201bda70f142e844d4aac752628e6a41bbf43e23 | |
parent | 7ff360ae87cf728b862bcc6e9e8f445abc9ef52f (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>
-rw-r--r-- | application/errors/error_general.php | 2 |
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"; } |