diff options
Diffstat (limited to 'classes/rpc.php')
-rwxr-xr-x | classes/rpc.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/classes/rpc.php b/classes/rpc.php index c14a5df00..35125ae04 100755 --- a/classes/rpc.php +++ b/classes/rpc.php @@ -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, |