chore: Some minor improvements (#2076)

This commit is contained in:
Roman Kelesidis 2025-08-06 10:19:23 +03:00 committed by GitHub
commit 5ff296f83b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,7 +26,7 @@ if (isset($this->request['post_id'])) {
AND p.post_id = pt.post_id AND p.post_id = pt.post_id
LIMIT 1"); LIMIT 1");
if (!$post) { if (!$post) {
$this->ajax_die('not post'); $this->ajax_die($lang['TOPIC_POST_NOT_EXIST']);
} }
$is_auth = auth(AUTH_ALL, $post['forum_id'], $userdata, $post); $is_auth = auth(AUTH_ALL, $post['forum_id'], $userdata, $post);