References shouldn't display for a node if there're no references to speak of.

Comments

Susurrus’s picture

Status: Active » Needs review

In citation_filter.module::hook_filter -

    case "process":
      $info = citation_filter_replace($text, $format);
      $append = citation_filter_append($info['refs'], $format);
      $text = $info['text'];
      return $text . $append;

should be replaced with

    case "process":
      $info = citation_filter_replace($text, $format);
      if (!empty($info['refs'])) {
        $append = citation_filter_append($info['refs'], $format);
        $text = $info['text'];
        return $text . $append;
      }
      else {
        return $text;
      }
cwgordon7’s picture

Thank you for this, I appreciate the time and effort you put into this. However, I am currently rewriting the module to work under flexifilter for a 6.x-2.x release, and I think that this rewrite will make this problem irrelevant.

cwgordon7’s picture

Status: Needs review » Fixed

Fixed through integration with flexifilter.

cwgordon7’s picture

Version: 6.x-1.1 » 6.x-2.0
Anonymous’s picture

Status: Fixed » Closed (fixed)

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