Fixed logic and removed the error supressing
diff --git a/system/helpers/html_helper.php b/system/helpers/html_helper.php
index 15c15a9..53fc899 100644
--- a/system/helpers/html_helper.php
+++ b/system/helpers/html_helper.php
@@ -258,13 +258,13 @@
if ( ! is_array($_doctypes))
{
- if (file_exists(APPPATH.'config/'.ENVIRONMENT.'/doctypes'.EXT))
+ if (is_file(APPPATH.'config/'.ENVIRONMENT.'/doctypes'.EXT))
{
include(APPPATH.'config/'.ENVIRONMENT.'/doctypes'.EXT);
}
- else
+ elseif (is_file(APPPATH.'config/doctypes'.EXT))
{
- @include(APPPATH.'config/doctypes'.EXT);
+ include(APPPATH.'config/doctypes'.EXT);
}
if ( ! is_array($_doctypes))