1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 12:47:38 +00:00

fix some php8 warnings

This commit is contained in:
Andrew Dolgov
2021-03-08 11:16:32 +03:00
parent a125e8540d
commit c26f58d8a5
3 changed files with 7 additions and 7 deletions

View File

@@ -382,10 +382,10 @@ class RPC extends Handler_Protected {
}
function log() {
$msg = clean($_REQUEST['msg']);
$file = basename(clean($_REQUEST['file']));
$line = (int) clean($_REQUEST['line']);
$context = clean($_REQUEST['context']);
$msg = clean($_REQUEST['msg'] ?? "");
$file = basename(clean($_REQUEST['file'] ?? ""));
$line = (int) clean($_REQUEST['line'] ?? 0);
$context = clean($_REQUEST['context'] ?? "");
if ($msg) {
Logger::log_error(E_USER_WARNING,