diff options
author | Florian Pritz <bluewind@xinu.at> | 2022-04-10 12:00:58 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2022-04-10 14:44:35 +0200 |
commit | 37bd983bf0cc956a6c814f161bec1061e9cc9572 (patch) | |
tree | 46d80855cb6210c319be7f5a4acbdc582a16f5d3 /application/controllers/Main.php | |
parent | b401c4e13863143b38b8848595566801fcc1527f (diff) |
feat(PHP8.1)!: Fix deprecated null arguments
BREAKING CHANGE: Syntax raises minimal PHP version to 7.0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/Main.php')
-rw-r--r-- | application/controllers/Main.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application/controllers/Main.php b/application/controllers/Main.php index df3e8ad78..d1b0cbbec 100644 --- a/application/controllers/Main.php +++ b/application/controllers/Main.php @@ -98,7 +98,7 @@ class Main extends MY_Controller { { session_write_close(); $id = $this->uri->segment(1); - $lexer = urldecode($this->uri->segment(2)); + $lexer = urldecode($this->uri->segment(2) ?? ''); $is_multipaste = false; if ($this->mmultipaste->id_exists($id)) { |