CRM-12875 fix
authorPratik Joshi <pratik.joshi@webaccess.co.in>
Mon, 24 Jun 2013 13:15:21 +0000 (18:45 +0530)
committerPratik Joshi <pratik.joshi@webaccess.co.in>
Mon, 24 Jun 2013 13:15:21 +0000 (18:45 +0530)
CRM/Admin/Form/Setting/Component.php

index 8b87877e9da8034ad579f7872df0d93f336acc1f..33e81f62e277281ae70786c2b9e5a93b6cb87d68 100644 (file)
@@ -79,7 +79,7 @@ class CRM_Admin_Form_Setting_Component extends CRM_Admin_Form_Setting {
   static function formRule($fields, $files, $options) {
     $errors = array();
 
-    if (is_array($fields['enableComponents'])) {
+    if (array_key_exists('enableComponents', $fields) && is_array($fields['enableComponents'])) {
       if (in_array('CiviPledge', $fields['enableComponents']) &&
         !in_array('CiviContribute', $fields['enableComponents'])
       ) {