I'm getting this error when enabling the module on my site. Is this because I'm running PHP 5.1?

Call to undefined function array_fill_keys() in sites/all/modules/nodereference_explorer/nodereference_explorer.module on line 359

Comments

ptaff’s picture

Same here, PHP 5.1.6.

gnindl’s picture

Assigned: Unassigned » gnindl
Status: Active » Fixed

Instead of

$js = array_fill_keys($js , TRUE);

the array is now filled like

$js_files = array();
foreach ($js as $js_file) {
  $js_files[$js_file] = TRUE;
}
$js = $js_files;

I think this should be compatible with PHP 5.1.x. Check out the latest development snapshot for testing.

Status: Fixed » Closed (fixed)

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