Minor fixes (#667)

This commit is contained in:
Roman Kelesidis 2023-03-30 01:05:50 +07:00 committed by GitHub
commit 0fd4b733fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -40,7 +40,7 @@
"guzzlehttp/psr7": "^2.4", "guzzlehttp/psr7": "^2.4",
"monolog/monolog": "^2.9", "monolog/monolog": "^2.9",
"rych/bencode": "v1.0.0", "rych/bencode": "v1.0.0",
"s1lentium/iptools": "1.*", "s1lentium/iptools": "v1.1.1",
"samdark/sitemap": "2.4.0", "samdark/sitemap": "2.4.0",
"symfony/mailer": "^5.4", "symfony/mailer": "^5.4",
"symfony/polyfill": "v1.27.0", "symfony/polyfill": "v1.27.0",

2
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "476e68bd0e844794d1f21d771e06ebad", "content-hash": "8661b3ef2a2e691d686c71bf3d2ea69b",
"packages": [ "packages": [
{ {
"name": "bugsnag/bugsnag", "name": "bugsnag/bugsnag",

View file

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

View file

@ -1196,7 +1196,7 @@ function birthday_age($date)
{ {
global $bb_cfg; global $bb_cfg;
if (!$date) { if (!$date) {
return; return '';
} }
$tz = TIMENOW + (3600 * $bb_cfg['board_timezone']); $tz = TIMENOW + (3600 * $bb_cfg['board_timezone']);