Cope with the possibility that “Software” and-or “Version” are null
This commit is contained in:
parent
8883460cac
commit
242b728f43
1 changed files with 4 additions and 1 deletions
|
@ -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='';
|
||||
|
|
Loading…
Reference in a new issue