forked from CiviWare/com.dpci.constituentsonly
		
	ignore api calls
This commit is contained in:
		@@ -18,6 +18,9 @@ class CRM_ConstituentsOnly_BAO_Query extends CRM_Contact_BAO_Query_Interface {
 | 
				
			|||||||
   * @access public
 | 
					   * @access public
 | 
				
			||||||
   */
 | 
					   */
 | 
				
			||||||
  public function where(&$query) {
 | 
					  public function where(&$query) {
 | 
				
			||||||
 | 
					    if (empty($query->_paramLookup['entryURL'])) {
 | 
				
			||||||
 | 
					      return;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    if (CRM_Utils_Array::value('civicrm_contact', $query->_tables)) {
 | 
					    if (CRM_Utils_Array::value('civicrm_contact', $query->_tables)) {
 | 
				
			||||||
      $query->_where[0][] = "( contact_a.do_not_trade IS NULL OR contact_a.do_not_trade = 0)";
 | 
					      $query->_where[0][] = "( contact_a.do_not_trade IS NULL OR contact_a.do_not_trade = 0)";
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user