mirror of https://github.com/BOINC/boinc.git
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:
parent
c9f15ce395
commit
9fb3b46797
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue