diff --git a/system/libraries/Loader.php b/system/libraries/Loader.php
index f005adc..e2467fa 100644
--- a/system/libraries/Loader.php
+++ b/system/libraries/Loader.php
@@ -478,7 +478,7 @@
 		if ($path == '')
 		{
 			$ext = pathinfo($view, PATHINFO_EXTENSION);
-			$file = ($ext != '') ? $view.EXT : $view;
+			$file = ($ext == '') ? $view.EXT : $view;
 			$path = $this->view_path.$file;
 		}
 		else