From 9fb3b4679752648a3d9ff212ee3adb9bc195b143 Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Sat, 1 Oct 2005 17:34:09 +0000 Subject: [PATCH] David, if you really wanted USE_PHPMAILER to be a const not a variable then have if (defined(USE_PHPMAILER)) { $USE_PHPMAILER=USE_PHPMAILER; } else { $USE_PHPMAILER=false; } http://de3.php.net/manual/en/language.constants.php says no dollars sign should be prepended if you are using a constant not a variable. svn path=/trunk/boinc/; revision=8398 --- html/inc/email.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/inc/email.inc b/html/inc/email.inc index ce41c43ae3..47abf8ab49 100644 --- a/html/inc/email.inc +++ b/html/inc/email.inc @@ -3,7 +3,7 @@ require_once("../inc/util.inc"); require_once("../project/project.inc"); -if (defined($USE_PHPMAILER)) { +if (isset($USE_PHPMAILER)) { if ($USE_PHPMAILER) { require_once("../inc/phpmailer/class.phpmailer.php"); }