mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-31 04:13:49 +01:00
bugfix: PHP notices on raw posts
This commit is contained in:
parent
7409da1a9d
commit
684fb68bf9
2
post.php
2
post.php
@ -561,6 +561,7 @@
|
||||
|
||||
$id = post($post, $OP);
|
||||
|
||||
if(isset($post['tracked_cites'])) {
|
||||
foreach($post['tracked_cites'] as $cite) {
|
||||
$query = prepare('INSERT INTO `cites` VALUES (:board, :post, :target_board, :target)');
|
||||
$query->bindValue(':board', $board['uri']);
|
||||
@ -569,6 +570,7 @@
|
||||
$query->bindValue(':target', $cite[1], PDO::PARAM_INT);
|
||||
$query->execute() or error(db_error($query));
|
||||
}
|
||||
}
|
||||
|
||||
buildThread(($OP?$id:$post['thread']));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user