diff --git a/system/src/Plugins.php b/system/src/Plugins.php index 37a1af3c..c880dd90 100644 --- a/system/src/Plugins.php +++ b/system/src/Plugins.php @@ -786,6 +786,11 @@ class Plugins { $install = 'plugins/' . $plugin_name . '/install.php'; } + if (empty($install)) { + self::$error = "This plugin doesn't seem to have install script defined."; + return false; + } + global $db; if (file_exists(BASE . $install)) { $db->revalidateCache();