I am seeing following message on pages when comments are hidden
Notice: Undefined index: comments in node_comment_block_block_view() (line 35 of .../node_comment_block/node_comment_block.module)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

shahinam’s picture

Title: Undefined index - when comments are closed » Undefined index - when comments are Hidden
Status: Active » Needs review
FileSize
545 bytes

PFA patch, it seems node->comment is a string and not int as expected.

opdavies’s picture

This has been committed to 7.x-1.x-dev.

http://drupalcode.org/project/node_comment_block.git/commit/1517678.

Thanks. :)

opdavies’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

  • Commit b78e3d5 on 7.x-1.x, 7.x-2.x by opdavies:
    Issue #2127769 by shahinam: Undefined index - when comments are Hidden.
    
  • Commit 23691b4 on 7.x-1.x, 7.x-2.x by opdavies:
    Revert "Issue #2127769 by shahinam: Undefined index - when comments are...
  • Commit 1517678 on 7.x-1.x, 7.x-2.x authored by shahinam, committed by opdavies:
    Issue #2127769 by shahinam: Undefined index - when comments are Hidden.