1
0
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:
Cameron
2020-12-14 16:21:48 -08:00
parent c258b856f2
commit 44e260b121
81 changed files with 747 additions and 722 deletions

View File

@@ -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);
}