From 0fd4b733fc7a54ee86ca21148db4c5a9e8cb238b Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 30 Mar 2023 01:05:50 +0700 Subject: [PATCH] Minor fixes (#667) --- composer.json | 2 +- composer.lock | 2 +- library/ajax/posts.php | 2 +- library/includes/functions.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 1d6e75375..46fcadef5 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,7 @@ "guzzlehttp/psr7": "^2.4", "monolog/monolog": "^2.9", "rych/bencode": "v1.0.0", - "s1lentium/iptools": "1.*", + "s1lentium/iptools": "v1.1.1", "samdark/sitemap": "2.4.0", "symfony/mailer": "^5.4", "symfony/polyfill": "v1.27.0", diff --git a/composer.lock b/composer.lock index 20d7db866..1154cfc01 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "476e68bd0e844794d1f21d771e06ebad", + "content-hash": "8661b3ef2a2e691d686c71bf3d2ea69b", "packages": [ { "name": "bugsnag/bugsnag", diff --git a/library/ajax/posts.php b/library/ajax/posts.php index c91c0f0a5..2e55eb265 100644 --- a/library/ajax/posts.php +++ b/library/ajax/posts.php @@ -41,7 +41,7 @@ if (isset($this->request['post_id'])) { AND f.forum_id = t.forum_id LIMIT 1"); 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); diff --git a/library/includes/functions.php b/library/includes/functions.php index c28cd732e..a77dc7bcb 100644 --- a/library/includes/functions.php +++ b/library/includes/functions.php @@ -1196,7 +1196,7 @@ function birthday_age($date) { global $bb_cfg; if (!$date) { - return; + return ''; } $tz = TIMENOW + (3600 * $bb_cfg['board_timezone']);