There are two users: admin (administrator) and test (authenticated user). If test creates record (Blog entry), and admin places there the comment there is an error:

Notice: Undefined index: comment-edit in edit_limit_node_view_alter() (line 320 of Z:\home\test.com\www\sites\all\modules\edit_limit\edit_limit.module).

Notice: Undefined index: title in edit_limit_node_view_alter() (line 320 of Z:\home\test.com\www\sites\all\modules\edit_limit\edit_limit.module).

The error is displayed only for the user test.

P.S. Thanks for the excellent module!

Comments

snupy’s picture

Decision variant:

edit_limit.module

To find:

if (!user_access('bypass edit limits') && variable_get('edit_limit_comment_time_enabled', FALSE)) {

To replace on:

if (!user_access('bypass edit limits') && variable_get('edit_limit_comment_time_enabled', FALSE) && !empty($build['comments']['comments'][$key]['links']['comment']['#links']['comment-edit'])) {

quade’s picture

Status: Active » Closed (fixed)

Good find. I've updated that conditional and is resolved in 7.x-1.0-beta3.