mirror of
https://github.com/e107inc/e107.git
synced 2025-08-20 21:32:09 +02:00
Code cleanup and optimization
This commit is contained in:
@@ -55,14 +55,14 @@ class list_news
|
||||
WHERE ".$qry." AND n.news_class REGEXP '".e_CLASS_REGEXP."'
|
||||
ORDER BY n.news_datestamp DESC LIMIT 0,".intval($this->parent->settings['amount']);
|
||||
|
||||
if(!$this->parent->e107->sql->db_Select_gen($qry))
|
||||
if(!$this->parent->e107->sql->gen($qry))
|
||||
{
|
||||
$list_data = LIST_NEWS_2;
|
||||
}
|
||||
else
|
||||
{
|
||||
$list_data = array();
|
||||
while($row=$this->parent->e107->sql->db_Fetch())
|
||||
while($row=$this->parent->e107->sql->fetch())
|
||||
{
|
||||
$row['news_title'] = $this->parse_news_title($row['news_title']);
|
||||
$rowheading = $this->parent->parse_heading($row['news_title']);
|
||||
|
Reference in New Issue
Block a user