modify check to 0 or 1
authorJitendra Purohit <jitendra@fuzion.co.nz>
Thu, 31 Aug 2017 08:32:08 +0000 (14:02 +0530)
committerJitendra Purohit <jitendra@fuzion.co.nz>
Thu, 31 Aug 2017 08:35:55 +0000 (14:05 +0530)
CRM/Member/Form/Search.php

index 078e6b3848785a5ba0a076a6ae66814b01277909..e21293931a3b337512bf6f77fb317405da8322f5 100644 (file)
@@ -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;
     }
   }