1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Added 'None' for when no page categories used.

This commit is contained in:
Cameron 2013-03-18 05:04:35 -07:00
parent 9b27e3ed03
commit 38c4f7ccf1

View File

@ -371,7 +371,7 @@ class page_admin_ui extends e_admin_ui
);
protected $books = array();
protected $cats = array();
protected $cats = array(0 => 'None');
protected $templates = array();
function init()
@ -415,6 +415,8 @@ class page_admin_ui extends e_admin_ui
$sql = e107::getDb();
$sql->gen("SELECT chapter_id,chapter_name,chapter_parent FROM #page_chapters ORDER BY chapter_parent asc, chapter_order");
while($row = $sql->fetch())
{
$cat = $row['chapter_id'];