Dépréciation de fonction php 8.1 paramétres basename

This commit is contained in:
Fred Tempez 2022-12-13 11:27:36 +01:00
parent 9c924a75e2
commit 7d5d856b75
1 changed files with 1 additions and 1 deletions

View File

@ -1614,7 +1614,7 @@ class UploadHandler
return $this->generate_response($response, $print_response);
}
protected function basename($filepath, $suffix = null) {
protected function basename($filepath, $suffix = "") {
$splited = preg_split('/\//', rtrim ($filepath, '/ '));
return substr(basename('X'.$splited[count($splited)-1], $suffix), 1);
}