From 330a8e32545f6861802382a0a03efaa5fc398b18 Mon Sep 17 00:00:00 2001 From: Jitendra Purohit Date: Thu, 31 Aug 2017 14:02:08 +0530 Subject: [PATCH] modify check to 0 or 1 --- CRM/Member/Form/Search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Member/Form/Search.php b/CRM/Member/Form/Search.php index 078e6b3848..e21293931a 100644 --- a/CRM/Member/Form/Search.php +++ b/CRM/Member/Form/Search.php @@ -353,7 +353,7 @@ class CRM_Member_Form_Search extends CRM_Core_Form_Search { //LCD also allow restrictions to membership owner via GET $owner = CRM_Utils_Request::retrieve('owner', 'String'); - if (!is_null($owner)) { + if (in_array($owner, array('0', '1'))) { $this->_formValues['member_is_primary'] = $this->_defaults['member_is_primary'] = $owner; } } -- 2.25.1