First congratulation for your excellent work:)

When I want to create a node type template, following warnings occurs.

* warning: array_unique() [function.array-unique]: The argument should be an array in /path_to/sites/all/modules/contemplate/contemplate.module on line 407.
* warning: Invalid argument supplied for foreach() in /path_to/includes/common.inc on line 1489.

It is a spelling mistake in contemplate/contemplate.module on line 407.

Change $contemplate_fids into $_contemplate_fids is ok.

    $_contemplate_fids = drupal_map_assoc(array_unique($contemplate_fids));

Changto

    $_contemplate_fids = drupal_map_assoc(array_unique($_contemplate_fids));

Thanks:)

Comments

Rob T’s picture

This fix works. It eliminates those same (once-frequent) warnings on my 6.3 project.

Thanks, cityreader.

eric.chenchao’s picture

Greate! haha

jrglasgow’s picture

Status: Active » Fixed

I just committed this to CVS

Anonymous’s picture

Status: Fixed » Closed (fixed)

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