CRM-14119 This includes https://github.com/civicrm/civicrm-core/pull/2400 and adds...
[civicrm-core.git] / CRM / Report / Form.php
index dd24018223bc3488ee96a41da1431d4425217f74..aa92d7b85b6b6e337cc3e5d0f1b99eddfa26ad85 100644 (file)
@@ -2229,7 +2229,7 @@ WHERE cg.extends IN ('" . implode("','", $this->_customGroupExtends) . "') AND
           }
           elseif (array_key_exists('extends', $table)) {
             // For custom fields referenced in $this->_customGroupExtends
-            $fields = $table['fields'];
+            $fields = CRM_Utils_Array::value('fields', $table, array());
           }
           if (!empty($fields) && is_array($fields)) {
             foreach ($fields as $fieldName => $field) {