mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Fixed error while trying to delete posts by bot (#1004)
This commit is contained in:
parent
459e5e161f
commit
afab42c1f9
2 changed files with 3 additions and 0 deletions
|
@ -524,6 +524,7 @@ switch ($mode) {
|
|||
WHERE p.topic_id = $topic_id
|
||||
AND p.poster_id = u.user_id
|
||||
AND p.post_id = pt.post_id
|
||||
AND p.poster_id != " . BOT_UID . "
|
||||
ORDER BY p.post_time ASC";
|
||||
if (!($result = DB()->sql_query($sql))) {
|
||||
bb_die('Could not get topic / post information');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue