Bug fix. Multiple boards now work.

This commit is contained in:
Savetheinternet 2010-11-30 20:44:53 +11:00
parent d3526e020a
commit 38ac7187fd
2 changed files with 3 additions and 1 deletions

View file

@ -43,6 +43,7 @@
}
function openBoard($uri) {
global $sql;
$boards_res = mysql_query(sprintf("SELECT * FROM `boards` WHERE `uri` = '%s' LIMIT 1", mysql_real_escape_string($uri)), $sql) or error(mysql_error($sql));
if($_board = mysql_fetch_array($boards_res)) {
setupBoard($_board);