Warning in php 8

This commit is contained in:
Radarjr2002
2022-09-01 13:10:25 +02:00
committed by GitHub
parent 6c45b13178
commit 03a39d33b9

View File

@@ -123,7 +123,7 @@ function rebuildObjectClass($destdir, $module, $objectname, $newmask, $readdir =
$i++; $i++;
$texttoinsert .= "\t\t'".$key."' => array('type'=>'".$val['type']."',"; $texttoinsert .= "\t\t'".$key."' => array('type'=>'".$val['type']."',";
$texttoinsert .= " 'label'=>'".$val['label']."',"; $texttoinsert .= " 'label'=>'".$val['label']."',";
if ($val['picto']) { if (!empty($val['picto'])) {
$texttoinsert .= " 'picto'=>'".$val['picto']."',"; $texttoinsert .= " 'picto'=>'".$val['picto']."',";
} }
$texttoinsert .= " 'enabled'=>'".($val['enabled'] !== '' ? $val['enabled'] : 1)."',"; $texttoinsert .= " 'enabled'=>'".($val['enabled'] !== '' ? $val['enabled'] : 1)."',";