Merge pull request #2372 from Squidly271/patch-2

Fix PHP errors if file doesn't exist my_parse_ini_file
This commit is contained in:
tom mortensen
2025-09-16 21:34:26 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -730,7 +730,7 @@ if ($method == 'check') {
if ($installed_plugin_file === false) {
write("plugin: not installed\n");
// run hook scripts for post processing
post_hooks($error);
post_hooks(1);
done(1);
}
$installed_pluginURL = plugin('pluginURL', $installed_plugin_file, $error);

View File

@@ -45,7 +45,7 @@ function my_parse_ini_string($text, $sections=false, $scanner=INI_SCANNER_NORMAL
}
function my_parse_ini_file($file, $sections=false, $scanner=INI_SCANNER_NORMAL) {
return my_parse_ini_string(file_get_contents($file),$sections,$scanner);
return my_parse_ini_string(@file_get_contents($file),$sections,$scanner);
}
function parse_plugin_cfg($plugin, $sections=false, $scanner=INI_SCANNER_NORMAL) {