In case the script don't have install option, inform the user

This commit is contained in:
slawkens 2025-06-25 17:36:43 +02:00
parent 13d33822b5
commit 6d43fc181f

View File

@ -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();