Index: trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php |
— | — | @@ -239,7 +239,7 @@ |
240 | 240 | } else { |
241 | 241 | // If target page doesn't exist, make it a red link |
242 | 242 | $targetTitle = Title::newFromText( $inTargetName ); |
243 | | - if ( !$targetTitle->exists() ) { |
| 243 | + if ( is_null( $targetTitle) || !$targetTitle->exists() ) { |
244 | 244 | $classStr .= " new"; |
245 | 245 | } |
246 | 246 | $str = "<a href=\"$link_url\" class=\"$classStr\">$inLinkStr</a>"; |