Fixed plugin manager not checking for plugin file existence before marking to load
authorDan
Sat, 08 Nov 2008 22:35:05 -0500
changeset 724 af6a618e5c94
parent 723 78d391d37700
child 725 b64f2618ef25
Fixed plugin manager not checking for plugin file existence before marking to load
includes/plugins.php
--- a/includes/plugins.php	Sat Nov 08 22:34:27 2008 -0500
+++ b/includes/plugins.php	Sat Nov 08 22:35:05 2008 -0500
@@ -82,7 +82,10 @@
     
     while ( $row = $db->fetchrow() )
     {
-      $this->load_list[] = $row['plugin_filename'];
+      if ( file_exists(ENANO_ROOT . "/plugins/{$row['plugin_filename']}") )
+      {
+        $this->load_list[] = $row['plugin_filename'];
+      }
     }
     
     $this->loaded_plugins = $this->get_plugin_list($this->load_list);