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
This commit is contained in:
Bruce Allen 2005-10-01 17:34:09 +00:00
parent c9f15ce395
commit 9fb3b46797
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}