From 68e0c8d6144b830580c2b45ba41da479939c4d70 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 6 Jul 2008 08:52:21 -0400 Subject: [PATCH] Fixing a call to undefined function error for BSFunctions::Rand() in BSMail::send() * Mail.php: (BSMail::send): Require Functions.php and then call ::random() instead of ::Rand() --- CHANGES | 4 ++++ Mail.php | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index edc044a..ff5fa24 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +3.1.1 +=================== +- Fixed: BSMail::send() would fail if sending a HTML/multipart email because it would call BSFunctions::Rand() + 3.1.0 =================== - Change: BSPrinterElementTable:__construct() can now take straight strings and convert them into BSPrinterElementLabel's diff --git a/Mail.php b/Mail.php index 05db039..323d3c3 100644 --- a/Mail.php +++ b/Mail.php @@ -242,7 +242,8 @@ class BSMail // see if we need to use mime/multipart if ($sendhtml && !empty($bodyhtml) == true) { - $boundary = 'ISSO-MULTIPART-' . BSFunctions::Rand(10); + require_once ISSO . '/Functions.php'; + $boundary = 'ISSO-MULTIPART-' . BSFunctions::random(10); $headers .= "Content-Type: multipart/alternative; boundary=\"$boundary\"" . $this->delim; $bodyHtml = BSFunctions::convert_line_breaks($this->bodyHtml, $this->delim); -- 2.43.5