diff --git a/e107_handlers/plugin_class.php b/e107_handlers/plugin_class.php index 49d78e983..b9a7cdb75 100644 --- a/e107_handlers/plugin_class.php +++ b/e107_handlers/plugin_class.php @@ -336,9 +336,12 @@ class e_plugin } + $detected = $this->getDetected(); $runUpdate = false; + + foreach($detected as $path) // add a missing plugin to the database table. { @@ -357,6 +360,8 @@ class e_plugin $this->_addons[$path] = !empty($row['plugin_addons']) ? explode(',',$row['plugin_addons']) : null; $runUpdate = true; + e107::getDebug()->log("Inserting plugin data into table".print_a($row,true)); + if($row['plugin_installflag'] == 1) { e107::getConfig()->setPref('plug_installed/'.$path, $row['plugin_version'])->save(false,true,false);