@@ -89,8 +89,7 @@ |
||
| 89 | 89 | for ( $wordCounter = 0; $wordCounter < $count; $wordCounter++ ){ |
| 90 | 90 | //TODO Take into account the "read more" tag |
| 91 | 91 | $trimed .= $string[$wordCounter]; |
| 92 | - if ( $wordCounter < $count-1 ){ $trimed .= " "; } |
|
| 93 | - else { $trimed .= "..."; } |
|
| 92 | + if ( $wordCounter < $count-1 ){ $trimed .= " "; } else { $trimed .= "..."; } |
|
| 94 | 93 | } |
| 95 | 94 | $trimed = trim($trimed); |
| 96 | 95 | return $trimed; |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | { |
| 82 | 82 | //if the post already has the tag, do nothing |
| 83 | 83 | if($this->postHasTag($postId, $tagId)){ |
| 84 | - return; |
|
| 84 | + return; |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | $sql = "INSERT INTO $this->tagAssoTbl (post_idposts, tag_idtags) VALUES (:postId, :tagId)"; |