early mornin gcommit
This commit is contained in:
parent
b5334b27a0
commit
348e30cf4c
1 changed files with 4 additions and 2 deletions
|
@ -18,6 +18,7 @@ class Forum
|
||||||
{
|
{
|
||||||
// Variables
|
// Variables
|
||||||
public $id = 0;
|
public $id = 0;
|
||||||
|
public $order = 0;
|
||||||
public $name = "Forum";
|
public $name = "Forum";
|
||||||
public $description = "";
|
public $description = "";
|
||||||
public $link = "";
|
public $link = "";
|
||||||
|
@ -42,6 +43,7 @@ class Forum
|
||||||
// Populate the variables
|
// Populate the variables
|
||||||
if ($forumRow) {
|
if ($forumRow) {
|
||||||
$this->id = $forumRow['forum_id'];
|
$this->id = $forumRow['forum_id'];
|
||||||
|
$this->order = $forumRow['forum_order'];
|
||||||
$this->name = $forumRow['forum_name'];
|
$this->name = $forumRow['forum_name'];
|
||||||
$this->description = $forumRow['forum_desc'];
|
$this->description = $forumRow['forum_desc'];
|
||||||
$this->link = $forumRow['forum_link'];
|
$this->link = $forumRow['forum_link'];
|
||||||
|
@ -75,7 +77,7 @@ class Forum
|
||||||
// Check if _forums is populated
|
// Check if _forums is populated
|
||||||
if (!count($this->_forums)) {
|
if (!count($this->_forums)) {
|
||||||
// Get all rows with the category id set to the forum id
|
// Get all rows with the category id set to the forum id
|
||||||
$forumRows = Database::fetch('forums', true, ['forum_category' => [$this->id, '=']]);
|
$forumRows = Database::fetch('forums', true, ['forum_category' => [$this->id, '=']], ['forum_order']);
|
||||||
|
|
||||||
// Create a storage array
|
// Create a storage array
|
||||||
$forums = [];
|
$forums = [];
|
||||||
|
|
Reference in a new issue