summaryrefslogtreecommitdiff
path: root/inc/functions.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2010-11-30 20:44:53 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2010-11-30 20:44:53 +1100
commit38ac7187fdccf4a672a3c69763035660df53e6f8 (patch)
tree73821dc0b2eb28651e84c2812a19c7374d32b317 /inc/functions.php
parentd3526e020ad977c04387f4df964ec707307557f2 (diff)
Bug fix. Multiple boards now work.
Diffstat (limited to 'inc/functions.php')
-rw-r--r--inc/functions.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/functions.php b/inc/functions.php
index 9436e4b6..21be6294 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -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);