From 0755aef092ff392fef7f82de3b6191ac232a406b Mon Sep 17 00:00:00 2001 From: secretr Date: Thu, 16 Apr 2009 10:19:50 +0000 Subject: [PATCH] fixed parse error --- email.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/email.php b/email.php index 2f87df689..7c5a0c11b 100644 --- a/email.php +++ b/email.php @@ -3,7 +3,7 @@ + ----------------------------------------------------------------------------+ | e107 website system | -| ©Steve Dunstan 2001-2002 +| ?Steve Dunstan 2001-2002 | http://e107.org | jalist@e107.org | @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/email.php,v $ -| $Revision: 1.3 $ -| $Date: 2009-01-22 01:58:29 $ -| $Author: mcfly_e107 $ +| $Revision: 1.4 $ +| $Date: 2009-04-16 10:19:50 $ +| $Author: secretr $ +----------------------------------------------------------------------------+ */ require_once("class2.php"); @@ -123,12 +123,11 @@ if (isset($_POST['emailsubmit'])) $emailurl = $_POST['referer']; $message = ''; - if($sql->db_Select('news', 'news_title, news_body, news_extended', 'news_id='(int)$parms)) + if($sql->db_Select('news', 'news_title, news_body, news_extended', 'news_id='.((int)$parms))) { $row = $sql->db_Fetch(); $message = "

".$row['news_title']."


".$row['news_body']."
".$row['news_extended']."

{e_BASE}news.php?extend.".$parms."
"; $message = $tp->toEmail($message); - } if($message == "")