Index: trunk/extensions/LiquidThreads/classes/Hooks.php |
— | — | @@ -177,8 +177,13 @@ |
178 | 178 | $attribs = array(); |
179 | 179 | $attribs['ThreadSubject'] = $thread->subject(); |
180 | 180 | if ( $thread->hasSuperThread() ) { |
181 | | - $attribs['ThreadParent'] = $thread->superThread()->title()->getPrefixedText(); |
182 | | - $attribs['ThreadAncestor'] = $thread->topmostThread()->title()->getPrefixedText(); |
| 181 | + if ( $thread->superThread()->title() ) { |
| 182 | + $attribs['ThreadParent'] = $thread->superThread()->title()->getPrefixedText(); |
| 183 | + } |
| 184 | + |
| 185 | + if ( $thread->topmostThread()->title() ) { |
| 186 | + $attribs['ThreadAncestor'] = $thread->topmostThread()->title()->getPrefixedText(); |
| 187 | + } |
183 | 188 | } |
184 | 189 | $attribs['ThreadPage'] = $thread->getTitle()->getPrefixedText(); |
185 | 190 | $attribs['ThreadID'] = $thread->id(); |