Project

General

Profile

« Previous | Next » 

Revision 6bbf4d45

Added by Andreas Kohlbecker over 10 years ago

avoiding php notices - cleaning code

View differences:

7.x/themes/palmweb_2/template.php
459 459
  if (isset($reference->datePublished->start)) {
460 460
    $year = partialToYear($reference->datePublished->start);
461 461
  }
462
  $citation = _short_form_of_author_team ($author_team->titleCache) . (!empty($year) ? '. ' . $year : '');
463
  $citation = str_replace('..', '.', $citation);
462
  if(isset($author_team->titleCache)){
463
    $citation = _short_form_of_author_team ($author_team->titleCache) . (!empty($year) ? '. ' . $year : '');
464
    $citation = str_replace('..', '.', $citation);
465
  } else {
466
    $citation = '';
467
  }
464 468

  
465 469
  if ($doLink) {
466 470
    $out = '<span class="reference">';

Also available in: Unified diff