Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-6822

Fatal error: Unsupported operand types in civicrm/CRM/Admin/Form/Setting.php on line 78

    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

        Attachments

          Activity

            People

            • Assignee:
              priya Priya Prajapati
              Reporter:
              vkareh Victor Kareh
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: