Skip to content
Snippets Groups Projects
Commit 05e6e810 authored by Erik Hommel's avatar Erik Hommel
Browse files

fix #63 error from MAF Norge

parent b551d4b9
Branches
Tags
No related merge requests found
......@@ -5,11 +5,13 @@ class CRM_Civirules_Utils_CustomDataFromPre {
private static $customValues = array();
public static function pre($op, $objectName, $objectId, $params) {
if (isset($params['custom']) && is_array($params['custom'])) {
foreach($params['custom'] as $fid => $custom_values) {
foreach($custom_values as $id => $field) {
$value = $field['value'];
self::setCustomData($objectName, $fid, $value, $id);
if (is_array($params)) {
if (isset($params['custom']) && is_array($params['custom'])) {
foreach ($params['custom'] as $fid => $custom_values) {
foreach ($custom_values as $id => $field) {
$value = $field['value'];
self::setCustomData($objectName, $fid, $value, $id);
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment