From: Dave Jenkins Date: Tue, 17 May 2016 15:48:54 +0000 (+0100) Subject: CRM-18567 - stristr was called with arguments in wrong order, causing $subTypes not... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=45e5c8726104897d586d49b4cc971f555bc6837a;p=civicrm-core.git CRM-18567 - stristr was called with arguments in wrong order, causing $subTypes not to be exploded correctly when comma-separated. --- diff --git a/CRM/Core/BAO/CustomGroup.php b/CRM/Core/BAO/CustomGroup.php index 0d76d4672f..aa9ca1f828 100644 --- a/CRM/Core/BAO/CustomGroup.php +++ b/CRM/Core/BAO/CustomGroup.php @@ -363,7 +363,7 @@ class CRM_Core_BAO_CustomGroup extends CRM_Core_DAO_CustomGroup { $subTypes = array(); } else { - if (stristr(',', $subTypes)) { + if (stristr($subTypes, ',')) { $subTypes = explode(',', $subTypes); } else {