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 | |
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>
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | application/controllers/Main.php | 2 |
3 files changed, 4 insertions, 2 deletions
@@ -1,6 +1,8 @@ This file lists major, incompatible or otherwise important changes, you should look at it after every update. NEXT + - BREAKING CHANGE: Minimum requried PHP version is now >= 7 + - More PHP 8.1 compatibility fixes 3.6.2 2022-01-09 - Use python3 instead of python for Ubuntu 20.04 and Debian 11 compatibility. @@ -38,7 +38,7 @@ You can also open a pull request on [GitHub](https://github.com/Bluewind/filebin ## Dependencies -* PHP >=5.5 with the following modules +* PHP >=7.0 with the following modules * gd for thumbnail generation * exif for thumbnail generation * phar for tarball creation 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)) { |