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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user