From b60b3ffa4bd31da4e08cd6adf1e642584defbabd Mon Sep 17 00:00:00 2001 From: bergware Date: Sat, 4 Feb 2023 14:52:45 +0100 Subject: [PATCH] PHP8 support --- plugins/dynamix.plugin.manager/post-hooks/post_plugin_checks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix.plugin.manager/post-hooks/post_plugin_checks b/plugins/dynamix.plugin.manager/post-hooks/post_plugin_checks index 2b2f932c2..272a30b3f 100755 --- a/plugins/dynamix.plugin.manager/post-hooks/post_plugin_checks +++ b/plugins/dynamix.plugin.manager/post-hooks/post_plugin_checks @@ -50,7 +50,7 @@ case 'plugin': // update incorrect or missing support links if (plugin('support', $plugin) != $support) { $xml = @simplexml_load_file($plugin); - if ($xml->xpath('//PLUGIN/@support')[0]) { + if ($xml->xpath('//PLUGIN/@support')[0]??false) { // support link exists, update it $xml->xpath('//PLUGIN/@support')[0] = $support; } else {