Adding an isset() test on ligne 674.

function entity_translation_admin_paths() {
  $paths = array();
  foreach (entity_get_info() as $entity_type => $info) {
    if (entity_translation_enabled($entity_type, NULL, TRUE) && isset($info['translation']['entity_translation']['path schemes'])) {
      foreach ($info['translation']['entity_translation']['path schemes'] as $scheme) {
        if (!empty($scheme['admin theme'])) {
          if (isset($scheme['translate path'])) {
            $translate_path = preg_replace('|%[^/]*|', '*', $scheme['translate path']);
            $paths[$translate_path] = TRUE;
            $paths["$translate_path/*"] = TRUE;
          }
          if (isset($scheme['edit path'])) {
            $edit_path = preg_replace('|%[^/]*|', '*', $scheme['edit path']);
            $paths["$edit_path/*"] = TRUE;
          }
        }
      }
    }
  }
  return $paths;
}

Patch attached.
Alexandre

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sashainparis’s picture

FileSize
957 bytes
plach’s picture

Version: 7.x-1.0-beta3 » 7.x-1.x-dev
Status: Patch (to be ported) » Fixed

Committed and pushed, thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

  • Commit d3eaec3 on 7.x-1.x, revisions authored by w3wfr, committed by plach:
    Issue #2160559 by w3wfr: Warning because of empty value line 675.
    

  • Commit d3eaec3 on 7.x-1.x, revisions, workbench authored by w3wfr, committed by plach:
    Issue #2160559 by w3wfr: Warning because of empty value line 675.