Commit e1d93068 authored by Klaus Purer's avatar Klaus Purer Committed by maciej.zgadzaj
Browse files

Issue #2781967 by klausi: PHP7 Uniform Variable Syntax

parent c9a6bdc4
Loading
Loading
Loading
Loading
+2 −2
Changes for pathauto_entity.module: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -433,7 +433,7 @@ function pathauto_entity_alias_form($form, $form_state, $form_id, $entity_type)
    $default_uri = entity_uri($entity_type, $form_state[$entity_type]);
    $entity_info = entity_get_info($entity_type);

    if (!empty($form_state[$entity_type]->$entity_info['entity keys']['id'])) {
    if (!empty($form_state[$entity_type]->{$entity_info['entity keys']['id']})) {
      $conditions = array('source' => $default_uri['path']);
      $langcode = pathauto_entity_language($entity_type, $form_state[$entity_type]);
      if ($langcode != LANGUAGE_NONE) {
@@ -448,7 +448,7 @@ function pathauto_entity_alias_form($form, $form_state, $form_id, $entity_type)
    // Determine if another module already add $form['path']
    $path += array(
      'pid' => NULL,
      'source' => isset($form_state[$entity_type]->$entity_info['entity keys']['id']) ? $default_uri['path'] : NULL,
      'source' => isset($form_state[$entity_type]->{$entity_info['entity keys']['id']}) ? $default_uri['path'] : NULL,
      'alias' => '',
      'language' => isset($langcode) ? $langcode : LANGUAGE_NONE,
    );