mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Added 'None' for when no page categories used.
This commit is contained in:
@@ -371,7 +371,7 @@ class page_admin_ui extends e_admin_ui
|
|||||||
);
|
);
|
||||||
|
|
||||||
protected $books = array();
|
protected $books = array();
|
||||||
protected $cats = array();
|
protected $cats = array(0 => 'None');
|
||||||
protected $templates = array();
|
protected $templates = array();
|
||||||
|
|
||||||
function init()
|
function init()
|
||||||
@@ -415,6 +415,8 @@ class page_admin_ui extends e_admin_ui
|
|||||||
|
|
||||||
$sql = e107::getDb();
|
$sql = e107::getDb();
|
||||||
$sql->gen("SELECT chapter_id,chapter_name,chapter_parent FROM #page_chapters ORDER BY chapter_parent asc, chapter_order");
|
$sql->gen("SELECT chapter_id,chapter_name,chapter_parent FROM #page_chapters ORDER BY chapter_parent asc, chapter_order");
|
||||||
|
|
||||||
|
|
||||||
while($row = $sql->fetch())
|
while($row = $sql->fetch())
|
||||||
{
|
{
|
||||||
$cat = $row['chapter_id'];
|
$cat = $row['chapter_id'];
|
||||||
|
Reference in New Issue
Block a user