Hi, I installed ahah_helper module and got error message that says array_smart_merge function already defined. I searched through my drupal installation and found that array_smart_merge function defined in hierarchical_select module.

I think the solution for these to modules (probably more in future) is to check whether the function is exist. If it exists, do nothing. But if not, then define it.

<?php
if (function_exists('array_smart_merge')) {
  function array_smart_merge($array, $override) {
    // function content
  }
}
CommentFileSizeAuthor
#1 smart-merge-double_902360-1.patch1.15 KBaron novak

Comments

aron novak’s picture

Version: 6.x-2.1 » 6.x-2.x-dev
Status: Active » Needs review
StatusFileSize
new1.15 KB

Very easy to fix, i agree.
Here is a patch.
HS does exactly the same, uses function_exists to avoid fatal errors.

scottrigby’s picture

Status: Needs review » Closed (duplicate)