From 95709e7588b9fb5a2e43049e0157cedc254b2536 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Thu, 12 Apr 2012 23:23:47 +1000 Subject: Removed `board`.`id`. Use the board URI/name at the key instead. --- inc/mod.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'inc/mod.php') diff --git a/inc/mod.php b/inc/mod.php index de6e2e9a..1b52840c 100644 --- a/inc/mod.php +++ b/inc/mod.php @@ -96,7 +96,7 @@ function modLog($action, $_board=null) { if(isset($_board)) $query->bindValue(':board', $_board); elseif(isset($board)) - $query->bindValue(':board', $board['id']); + $query->bindValue(':board', $board['uri']); else $query->bindValue(':board', null, PDO::PARAM_NULL); $query->execute() or error(db_error($query)); @@ -125,7 +125,7 @@ function ulBoards() { $b['title'] . (isset($b['subtitle']) ? ' — ' . $b['subtitle'] . '' : '') . ($mod['type'] >= $config['mod']['manageboards'] ? - ' [manage]' : '') . + ' [manage]' : '') . ''; } @@ -139,10 +139,10 @@ function form_newBan($ip=null, $reason='', $continue=false, $delete=false, $boar global $config, $mod; $boards = listBoards(); - $__boards = '
  • '; + $__boards = '
  • '; foreach($boards as &$_board) { $__boards .= '
  • ' . - '' . + '' . '