mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 00:54:49 +02:00
Code cleanup and optimization
This commit is contained in:
@@ -153,9 +153,9 @@ if (isset($_POST['emailsubmit']))
|
||||
{
|
||||
$emailurl = strip_tags($_POST['referer']);
|
||||
$message = '';
|
||||
if($sql->db_Select('news', 'news_title, news_body, news_extended', 'news_id='.((int)$parms)))
|
||||
if($sql->select('news', 'news_title, news_body, news_extended', 'news_id='.((int)$parms)))
|
||||
{
|
||||
$row = $sql->db_Fetch();
|
||||
$row = $sql->fetch();
|
||||
$message = "<h3 class='email_heading'>".$row['news_title']."</h3><br />".$row['news_body']."<br />".$row['news_extended']."<br /><br /><a href='{e_BASE}news.php?extend.".$parms."'>{e_BASE}news.php?extend.".$parms."</a><br />";
|
||||
$message = $tp->toEmail($message);
|
||||
}
|
||||
|
Reference in New Issue
Block a user