[Hide Content]From fdf9c6862d3dc228f72f3a5a1447ca7ad13b1ddd Mon Sep 17 00:00:00 2001
From: Igor Murzov <e-mail@date.by>
Date: Mon, 5 Aug 2013 17:34:31 +0400
Subject: [PATCH] BUG: Fix undefined variable usage in sendemail
Fixes the following error:
PHP Notice: Undefined variable: CDASH_USE_LOCAL_DIRECTORY in
/var/www/cdash/cdash/sendemail.php on line 1261
---
cdash/sendemail.php | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cdash/sendemail.php b/cdash/sendemail.php
index 4e7ffce..e6882f8 100644
--- a/cdash/sendemail.php
+++ b/cdash/sendemail.php
@@ -1186,6 +1186,8 @@ function send_email_to_user($userid, $emailtext, $Build, $Project)
function send_error_email($userid, $emailaddress, $sendEmail, $errors,
$Build, $Project, $prefix = 'none')
{
+ include("cdash/config.php");
+
$emailtext = array();
$emailtext['nerror'] = 0;
--
1.7.9.5