1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-21 05:41:58 +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

@@ -46,7 +46,7 @@ class list_download
WHERE dc.download_category_class REGEXP '".e_CLASS_REGEXP."' AND d.download_class REGEXP '".e_CLASS_REGEXP."' AND d.download_active != '0' ".$qry."
ORDER BY download_datestamp DESC LIMIT 0,".intval($this->parent->settings['amount'])." ";
$downloads = $this->parent->e107->sql->db_Select_gen($qry);
$downloads = $this->parent->e107->sql->gen($qry);
if($downloads == 0)
{
$list_data = LIST_DOWNLOAD_2;
@@ -54,7 +54,7 @@ class list_download
else
{
$list_data = array();
while($row = $this->parent->e107->sql->db_Fetch())
while($row = $this->parent->e107->sql->fetch())
{
$record = array();
$rowheading = $this->parent->parse_heading($row['download_name']);