From bdf013ce057191ca7a22f6514cd172739368be49 Mon Sep 17 00:00:00 2001 From: cp6 Date: Mon, 1 Feb 2021 14:12:49 +1100 Subject: [PATCH] Fixed attach domain too error when null Fixed attach domain too error when null and vieing more info modal --- class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/class.php b/class.php index bedd85b..04eb670 100644 --- a/class.php +++ b/class.php @@ -2569,7 +2569,11 @@ class idlers extends helperFunctions $this->HTMLphrase('p', 'm-desc', 'Attached to'); $this->tagClose('div'); $this->colOpen('col-8'); - $this->outputString('

' . $this->idToObjectName($data['attached_to']) . '

'); + if (!is_null($data['attached_to']) && !empty($data['attached_to'])){ + $this->outputString('

' . $this->idToObjectName($data['attached_to']) . '

'); + } else { + $this->outputString(''); + } $this->tagClose('div', 2);