diff --git a/src/Service/UwBlockManualElements.php b/src/Service/UwBlockManualElements.php index 849e1d57d867425a0848cab51d03bb6c2c0f79ba..dd48dce18d4a070ace721051beaabf1e52938384 100644 --- a/src/Service/UwBlockManualElements.php +++ b/src/Service/UwBlockManualElements.php @@ -262,12 +262,13 @@ class UwBlockManualElements { // If we are not updating a block, we have to get the node ids // from the block config. if (!$updating_block) { + if (isset($config[$name])) { + // Get the ids from the block config. + $ids = $config[$name][$ids_name]; - // Get the ids from the block config. - $ids = $config[$name][$ids_name]; - - // Set the ids into the form state. - $form_state->set($ids_name, $ids); + // Set the ids into the form state. + $form_state->set($ids_name, $ids); + } } // If we are on updating a block, get the ids from the form_state. else {