fix warning php 8.2
This commit is contained in:
parent
01c78a0aa5
commit
d4d89b6bfb
1 changed files with 1 additions and 1 deletions
|
|
@ -1214,7 +1214,7 @@ class FormFile
|
|||
}
|
||||
}
|
||||
// For backward compatiblity, we detect file stored into an old path
|
||||
if (getDolGlobalInt('PRODUCT_USE_OLD_PATH_FOR_PHOTO') && $filearray[0]['level1name'] == 'photos') {
|
||||
if (getDolGlobalInt('PRODUCT_USE_OLD_PATH_FOR_PHOTO') && isset($filearray[0]) && $filearray[0]['level1name'] == 'photos') {
|
||||
$relativepath = preg_replace('/^.*\/produit\//', '', $filearray[0]['path']).'/';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue