Cope with the possibility that “Software” and-or “Version” are null

This commit is contained in:
pezcurrel 2022-12-27 23:33:31 +01:00
parent 8883460cac
commit 242b728f43

View file

@ -536,7 +536,10 @@ while ($if<$il && $row=mysqli_fetch_assoc($res)) {
$out.='<div><span class="ilab">'._('New').'</span> ';
($bt-$row['InsertTS']<=$oldline) ? $out.='<span class="ivgood">'._('Yes!').'</span>' : $out.=_('No');
$out.='</div>'.N;
$out.='<div><span class="ilab">'._('Software').'</span> '.nully(hspech(ucfirst($row['Software']))).' '.nully(hspech($row['Version'])).'</div>'.N;
$software='';
if (!is_null($row['Software'])) $software.=ucfirst($row['Software']);
if (!is_null($row['Version'])) $software.=$row['Version'];
$out.='<div><span class="ilab">'._('Software').'</span> '.nully(hspech($software)).'</div>'.N;
$out.='<div><span class="ilab">'._('Registrations').'</span> ';
($row['RegReqApproval']==1) ? $buf=' <span class="iwarn">('._('by admin approval').')</span>' : $buf='';