]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
Empty tag values fix
authorBanana <mail@bananas-playground.net>
Mon, 4 Jan 2021 17:53:37 +0000 (18:53 +0100)
committerBanana <mail@bananas-playground.net>
Mon, 4 Jan 2021 17:53:37 +0000 (18:53 +0100)
webclient/lib/trite.class.php
webclient/view/default/managetags/managetags.php

index a61af9b19c5ea0bf6cf39057d477b3e2371ebb43..d0b8e9ab38b62f3a7c285dfce87cf6489ded9762 100644 (file)
@@ -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) {
index 5167fd7e316817dffadd320a6c12e09eb03a33b6..7b0cb054f2e33353d0a44af9d9ee30f50accbefb 100644 (file)
@@ -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();