PHP8 support

This commit is contained in:
bergware
2023-02-04 14:52:45 +01:00
parent 84195f0457
commit b60b3ffa4b

View File

@@ -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 {