Changeset 54

Show
Ignore:
Timestamp:
10/06/07 21:47:14 (6 years ago)
Author:
d0nut
Message:

fixes for tagging in easy-coding (and the rest of the world)

Location:
taggingreloaded
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • taggingreloaded/files/style/taggingreloaded.css

    r50 r54  
    22 margin:0px; 
    33 padding:0px; 
     4 text-align:justify; 
    45} 
    56 
     
    78  display:inline; 
    89  list-style-type:none; 
    9   padding:3px; 
     10  padding:4px; 
    1011} 
    1112 
  • taggingreloaded/optionals/de.easy-coding.wbb.taggingreloaded/files/lib/system/event/listener/TaggingReloadedWBBMessageFormListener.class.php

    r50 r54  
    8787        protected function saved () { 
    8888                $postID = 0; 
     89                $i = 0; 
    8990                 
    9091                switch ($this->className) { 
     
    123124                foreach($this->tags as $tag => $weight) { 
    124125                        $sql_append[] = "({$taggingID}, ".WCF::getUser()->userID.", '".escapeString($tag)."', '".escapeString($weight)."')"; 
     126                        $i++; 
    125127                } 
    126128                 
    127129                $sql .= implode(',', $sql_append); 
    128                 WBBCore::getDB()->sendQuery($sql); 
     130                if($i>0) WBBCore::getDB()->sendQuery($sql); 
    129131        } 
    130132}