Fixes an error reporting typo.

This commit is contained in:
jove 2016-08-20 19:31:19 +01:00 committed by -
parent 4d23fc77b6
commit 72382a07f9

View File

@ -1384,7 +1384,7 @@ function mod_move($originBoard, $postID) {
$query = prepare('SELECT `target` FROM ``cites`` WHERE `target_board` = :board AND `board` = :board AND `post` = :post'); $query = prepare('SELECT `target` FROM ``cites`` WHERE `target_board` = :board AND `board` = :board AND `post` = :post');
$query->bindValue(':board', $originBoard); $query->bindValue(':board', $originBoard);
$query->bindValue(':post', $post['id'], PDO::PARAM_INT); $query->bindValue(':post', $post['id'], PDO::PARAM_INT);
$query->execute() or error(db_error($qurey)); $query->execute() or error(db_error($query));
// correct >>X links // correct >>X links
while ($cite = $query->fetch(PDO::FETCH_ASSOC)) { while ($cite = $query->fetch(PDO::FETCH_ASSOC)) {