The following message is shown:

Notice: Undefined property: stdClass::$name in clone_node_prepopulate() (line 146 of /home/maus/www/impulsation.ru/sites/all/modules/node_clone/clone.pages.inc).

Looks like it's because $user object doesn't have a name field when user is not identified.

A quick fix attached.

Comments

akamaus’s picture

StatusFileSize
new586 bytes

oops, here is the patch

pwolanin’s picture

Status: Active » Needs work

patch doesn't conform to coding standards. Conditionals always need to use braces.

see: http://drupal.org/coding-standards#controlstruct

On the other hand, this is a one-liner so just use a ternary.

pwolanin’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev
Status: Needs work » Needs review
StatusFileSize
new1 KB
pwolanin’s picture

Status: Needs review » Fixed

committed to 7 and 6 branches

Status: Fixed » Closed (fixed)

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

  • Commit 6f309dd on 7.x-1.x, 8.x-1.x by pwolanin:
    Issue #1604844 by akamaus, pwolanin: fix for Notice when name is...