Commit f23184c1 authored by Matt Glaman's avatar Matt Glaman Committed by Dave Reid
Browse files

Issue #3199269 by mglaman, Dave Reid, jcisio, tarasich, ricovandevin,...

Issue #3199269 by mglaman, Dave Reid, jcisio, tarasich, ricovandevin, alisonjo315: Fixed PHP Notice: Trying to access array offset on value of type null in EntityBrowserElement::valueCallback()
parent b6b09cdc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -224,8 +224,8 @@ class EntityBrowserElement extends FormElement {
   * {@inheritdoc}
   */
  public static function valueCallback(&$element, $input, FormStateInterface $form_state) {
    if ($input === FALSE) {
      return $element['#default_value'] ?: [];
    if (empty($input)) {
      return $element['#default_value'] ?? [];
    }

    $entities = [];