Permalink
Browse files

Make sure MailChimp API class isn't loaded. Closes #1

  • Loading branch information...
1 parent 9a2f889 commit 85f5539af955eee1523901ad596433236e67cb0c @stas committed Sep 17, 2011
Showing with 2 additions and 2 deletions.
  1. +0 −2 includes/crm_sync.class.php
  2. +2 −0 simple-crm-mailchimp.php
@@ -1,6 +1,4 @@
<?php
-require_once 'MCAPI.class.php';
-
/**
* Class extends user profile fields
*/
View
@@ -11,6 +11,8 @@
define( 'SCRM_MC_ROOT', dirname( __FILE__ ) );
define( 'SCRM_MC_WEB_ROOT', WP_PLUGIN_URL . '/' . basename( SCRM_MC_ROOT ) );
+if ( !class_exists( 'MCAPI' ) )
+ require_once SCRM_MC_ROOT . '/includes/MCAPI.class.php';
require_once SCRM_MC_ROOT . '/includes/crm_sync.class.php';
/**

0 comments on commit 85f5539

Please sign in to comment.