Update post_plugin_checks

This commit is contained in:
Squidly271
2024-01-05 19:29:25 -05:00
committed by GitHub
parent 7d9d306ef9
commit adcb0de17d

View File

@@ -46,7 +46,7 @@ case 'plugin':
$info = readJson('/tmp/community.applications/tempFiles/templates.json');
// find matching support link
$url = plugin('pluginURL', $plugin);
if ($support = searchLink($info, $url) ?: searchLink($info, newurl($url))) {
if ( !empty($info) && ($support = searchLink($info, $url) ?: searchLink($info, newurl($url))) ) {
// update incorrect or missing support links
if (plugin('support', $plugin) != $support) {
$xml = @simplexml_load_file($plugin);