From: Banana Date: Mon, 4 Jan 2021 17:53:37 +0000 (+0100) Subject: Empty tag values fix X-Git-Tag: 1.0~6 X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=b3fabb0063f2ff423d17ce6a5fcbaa5463ae3c8c;p=bibliotheca-php.git Empty tag values fix --- 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();