Skip to content
Snippets Groups Projects
Commit d8ff3ef4 authored by jaapjansma's avatar jaapjansma
Browse files

Only use pre data if params is an array

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