diff --git a/classes/pluginhost.php b/classes/pluginhost.php
index 7c6fab9a0ebcf8740d5a2380ecfa2a8cc4a8b292..bbfa2ca2a72f1fec1a0fdd19330cc70c305b72c0 100644
--- a/classes/pluginhost.php
+++ b/classes/pluginhost.php
@@ -103,6 +103,9 @@ class PluginHost {
 		foreach ($plugins as $class) {
 			$class = trim($class);
 			$class_file = strtolower(basename($class));
+
+			if (!is_dir(dirname(__FILE__)."/../plugins/$class_file")) continue;
+
 			$file = dirname(__FILE__)."/../plugins/$class_file/init.php";
 
 			if (!isset($this->plugins[$class])) {