Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 3.2.2
-
Fix Version/s: 3.2.4
-
Component/s: Core CiviCRM
-
Labels:None
Description
When called with empty arrays, array_combine throws an Unsupported operand error.
On line 78 of CRM/Admin/Form/Setting.php, change
$this->_defaults['autocompleteContactSearch'] = array( '1' => 1 ) + array_combine($list, $listEnabled);
to
$this->_defaults['autocompleteContactSearch'] = array('1' => 1) + ($list === array() && $listEnabled === array() ? array() : array_combine($list, $listEnabled));
This happens due to a bug in PHP: http://bugs.php.net/bug.php?id=34857