Mercurial > hg > rc2
diff program/include/rcmail.php @ 17:dd5ed6ef69c9
Slowly cleaning up more php8 Warnings/deprecations
| author | Charlie Root |
|---|---|
| date | Mon, 06 Oct 2025 12:20:32 -0400 |
| parents | 85a746e95663 |
| children | b6a96bdd6b29 |
line wrap: on
line diff
--- a/program/include/rcmail.php Mon Oct 06 10:34:51 2025 -0400 +++ b/program/include/rcmail.php Mon Oct 06 12:20:32 2025 -0400 @@ -823,7 +823,7 @@ } $pre = array(); - $task = $p['_task'] ?: ($p['task'] ?: $this->task); + $task = ($p['_task']??null) ?: ($p['task'] ?: $this->task); $pre['_task'] = $task; unset($p['task'], $p['_task']); @@ -838,7 +838,7 @@ } } - $base_path = strval($_SERVER['REDIRECT_SCRIPT_URL'] ?: $_SERVER['SCRIPT_NAME']); + $base_path = strval(($_SERVER['REDIRECT_SCRIPT_URL']??null) ?: $_SERVER['SCRIPT_NAME']); $base_path = preg_replace('![^/]+$!', '', $base_path); if ($secure && ($token = $this->get_secure_url_token(true))) {
