Closed (duplicate)
Project:
Hierarchical Select
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Nov 2009 at 11:37 UTC
Updated:
28 Feb 2010 at 08:37 UTC
Jump to comment: Most recent file
Comments
Comment #1
reubenavery commentedHello,
Since the two functions are identical, I just added a function_exists check around the module.. patch attached
Comment #2
reubenavery commentedprobably would be better to just rename the function though..
moral of this story: if you're going to borrow a function from the comments at php.net, might want to assume that somebody else in a different module will borrow the same function.
Comment #3
atheneus commentedI had uploaded this patch to a more recent duplicate issue. I have renamed the function and all references within the module - putting it under the module namespace as _hierarchical_select_array_smart_merge(...). I believe both these projects are by Wim Leers, so maybe he will want to consolidate any shared code across his modules. This patch does nothing to address duplicate code across modules.
Comment #4
rikvd commentedhttp://drupal.org/node/689222
Comment #5
wim leersFixed in #689222: Check if array_smart_merge() function exists before defining it.