Closed bhsmither closed 6 months ago
Minor:
In filemanager.class.php, near line 714, there is:
$sub_dir = (substr($this->_sub_dir, 0, 1) == '/') ? $this->_sub_dir : '/'.$this->_sub_dir;
PHP8 complains if $this->_sub_dir is null, being deprecated for substr().
$this->_sub_dir
substr()
It might be possible to assign the class attribute $_sub_dir='';.
$_sub_dir='';
Maybe easiest is to append a space to the test expression, then compare the zeroth position in the string:
$sub_dir = (($this->_sub_dir.' ')[0] == '/') ? $this->_sub_dir : '/'.$this->_sub_dir;
Thank you.
Minor:
In filemanager.class.php, near line 714, there is:
PHP8 complains if
$this->_sub_dir
is null, being deprecated forsubstr()
.It might be possible to assign the class attribute
$_sub_dir='';
.Maybe easiest is to append a space to the test expression, then compare the zeroth position in the string: