From fe7e9c5103d1dc2d0b7c1aad2cdd58a552b218fe Mon Sep 17 00:00:00 2001 From: czaks Date: Tue, 10 Mar 2015 13:03:47 +0100 Subject: [PATCH] ... --- inc/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/functions.php b/inc/functions.php index ef7d3b7d..df5bc426 100755 --- a/inc/functions.php +++ b/inc/functions.php @@ -2482,7 +2482,7 @@ function link_for($post, $page50 = false, $foreignlink = false, $thread = false) if (!$thread) { // Oh fuck, we'd better optimize it ASAP - $query = prepare(sprintf("SELECT `slug` FROM ``posts_%s`` WHERE `id` = :id", $board['uri'])); + $query = prepare(sprintf("SELECT `slug` FROM ``posts_%s`` WHERE `id` = :id", $b['uri'])); $query->bindValue(':id', $id, PDO::PARAM_INT); $query->execute() or error(db_error($query));