From 6d43fc181fce9a40a78954689a3d0f744a6eea3b Mon Sep 17 00:00:00 2001 From: slawkens Date: Wed, 25 Jun 2025 17:36:43 +0200 Subject: [PATCH] In case the script don't have install option, inform the user --- system/src/Plugins.php | 5 +++++ 1 file changed, 5 insertions(+) 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();