Skip to content
Snippets Groups Projects
Commit 47a290cb authored by Jaap Jansma's avatar Jaap Jansma Committed by GitHub
Browse files

Merge pull request #85 from relldoesphp/Issue-#55-Fix

Fix for issue #55 not being able to enable online registration
parents 61fc8dea cb1a99af
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ class CRM_Civirules_Utils_CustomDataFromPre {
* [] => value_b
*
*/
if (CRM_Civirules_Utils_CustomField::isCustomFieldMultiselect($field_id) && is_array($value)) {
if ($field_id > 0 && CRM_Civirules_Utils_CustomField::isCustomFieldMultiselect($field_id) && is_array($value)) {
$all_ones = true;
foreach($value as $i => $j) {
if ($j != 1) {
......@@ -72,4 +72,4 @@ class CRM_Civirules_Utils_CustomDataFromPre {
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment