Fix for e-Newsletter

There is a small bug with e-Newsletter. It uses PHPMailer class for sending out the mail, but WordPress also uses it's own instance of it. On line 248 in the e-newsletter's class.functions.php:

require_once( $this->plugin_dir . "email-newsletter-files/phpmailer/class.phpmailer.php" );

Attempts to load the class only once, but the problem here is that require_once will load the class again because it is loade from a different file than the one Wordpress loaded.

This results in a runtime error when adding a new user to the site using the standard network admin tools.

You can simply fix this by doing the following instead:

if (!class_exists('PHPMailer')) {
require_once( $this->plugin_dir . "email-newsletter-files/phpmailer/class.phpmailer.php" );
}