From 242b728f43c852d55defc19e0dd316ca807a3685 Mon Sep 17 00:00:00 2001 From: pezcurrel Date: Tue, 27 Dec 2022 23:33:31 +0100 Subject: [PATCH] =?UTF-8?q?Cope=20with=20the=20possibility=20that=20?= =?UTF-8?q?=E2=80=9CSoftware=E2=80=9D=20and-or=20=E2=80=9CVersion=E2=80=9D?= =?UTF-8?q?=20are=20null?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/site/instances.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/site/instances.php b/web/site/instances.php index 2e6e4c7..fa88b62 100644 --- a/web/site/instances.php +++ b/web/site/instances.php @@ -536,7 +536,10 @@ while ($if<$il && $row=mysqli_fetch_assoc($res)) { $out.='
'._('New').' '; ($bt-$row['InsertTS']<=$oldline) ? $out.=''._('Yes!').'' : $out.=_('No'); $out.='
'.N; - $out.='
'._('Software').' '.nully(hspech(ucfirst($row['Software']))).' '.nully(hspech($row['Version'])).'
'.N; + $software=''; + if (!is_null($row['Software'])) $software.=ucfirst($row['Software']); + if (!is_null($row['Version'])) $software.=$row['Version']; + $out.='
'._('Software').' '.nully(hspech($software)).'
'.N; $out.='
'._('Registrations').' '; ($row['RegReqApproval']==1) ? $buf=' ('._('by admin approval').')' : $buf='';