diff --git a/inc/functions.php b/inc/functions.php index b61f5bb7..b2d945d2 100755 --- a/inc/functions.php +++ b/inc/functions.php @@ -680,7 +680,7 @@ function listBoards($just_uri = false, $indexed_only = false) { if (!$just_uri) { $query = query("SELECT ``boards``.`uri` uri, ``boards``.`title` title, ``boards``.`subtitle` subtitle, ``board_create``.`time` time, ``boards``.`indexed` indexed FROM ``boards``" . ( $indexed_only ? " WHERE `indexed` = 1 " : "" ) . "LEFT JOIN ``board_create`` ON ``boards``.`uri` = ``board_create``.`uri` ORDER BY ``boards``.`uri`") or error(db_error()); - $boards = $query->fetchAll(); + $boards = $query->fetchAll(PDO::FETCH_ASSOC); } else { $boards = array(); $query = query("SELECT `uri` FROM ``boards``" . ( $indexed_only ? " WHERE `indexed` = 1" : "" ) . " ORDER BY ``boards``.`uri`") or error(db_error()); diff --git a/inc/instance-config.php b/inc/instance-config.php index 0a557691..c2df3b5b 100644 --- a/inc/instance-config.php +++ b/inc/instance-config.php @@ -355,13 +355,22 @@ EOT; file_write('stylesheets/board/'.$b.'.css', $_POST['css']); file_write($b.'/rules.html', Element('page.html', array('title'=>'Rules', 'subtitle'=>'', 'config'=>$config, 'body'=>'