Closed (fixed)
Project:
Content Templates (Contemplate)
Version:
master
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
15 Aug 2008 at 08:20 UTC
Updated:
30 Sep 2008 at 05:32 UTC
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
Comment #1
Rob T commentedThis fix works. It eliminates those same (once-frequent) warnings on my 6.3 project.
Thanks, cityreader.
Comment #2
eric.chenchao commentedGreate! haha
Comment #3
jrglasgow commentedI just committed this to CVS
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.