From b3fabb0063f2ff423d17ce6a5fcbaa5463ae3c8c Mon Sep 17 00:00:00 2001 From: Banana Date: Mon, 4 Jan 2021 18:53:37 +0100 Subject: [PATCH] Empty tag values fix --- webclient/lib/trite.class.php | 4 +++- webclient/view/default/managetags/managetags.php | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webclient/lib/trite.class.php b/webclient/lib/trite.class.php index a61af9b..d0b8e9a 100644 --- a/webclient/lib/trite.class.php +++ b/webclient/lib/trite.class.php @@ -245,7 +245,9 @@ class Trite { $ret[$result['id']]['displayname'] = $result['displayname']; $ret[$result['id']]['identifier'] = $result['identifier']; $ret[$result['id']]['type'] = $result['type']; - $ret[$result['id']]['entries'][$result['value']] = $result['value']; + if(!empty($result['value'])) { + $ret[$result['id']]['entries'][$result['value']] = $result['value']; + } } } } catch (Exception $e) { diff --git a/webclient/view/default/managetags/managetags.php b/webclient/view/default/managetags/managetags.php index 5167fd7..7b0cb05 100644 --- a/webclient/view/default/managetags/managetags.php +++ b/webclient/view/default/managetags/managetags.php @@ -40,8 +40,6 @@ if(!empty($_collection)) { $TemplateData['loadedCollection'] = $Trite->load($_collection); if(!empty($TemplateData['loadedCollection'])) { $ManageTags->setCollection($_collection); - - if(isset($_POST['submitForm'])) { $fdata = $_POST['fdata']; $do = array(); -- 2.39.5