php 8 compat fix for saving plugin order

This commit is contained in:
onli 2021-05-30 11:47:18 +02:00
parent e293bc18f3
commit 20de7bd442

View File

@ -369,7 +369,7 @@ if (isset($serendipity['GET']['plugin_to_conf'])) {
serendipity_plugin_api::update_plugin_owner(
addslashes($plugin['id']),
addslashes($_POST['serendipity']['ownership'][$plugin['name']])
addslashes($_POST['serendipity']['ownership'][$plugin['name'] ?? null] ?? null)
);
$pos++;
}