From af027a0dd7a38a8cc25b34d0082fdc1d0523b111 Mon Sep 17 00:00:00 2001 From: bsitu Date: Tue, 27 Nov 2012 14:16:18 -0800 Subject: [PATCH] Remove redundant condition from if statement Change-Id: I5e12b5766f9cc8aa546833756778c8cf2c3bddbe --- includes/DiscussionParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/DiscussionParser.php b/includes/DiscussionParser.php index 208066e68..b2fe1f053 100644 --- a/includes/DiscussionParser.php +++ b/includes/DiscussionParser.php @@ -66,7 +66,7 @@ abstract class EchoDiscussionParser { } } - if ( !$createdEvents && $title && $title->getNamespace() == NS_USER_TALK ) { + if ( !$createdEvents && $title->getNamespace() == NS_USER_TALK ) { $notifyUser = User::newFromName( $title->getText() ); if ( $notifyUser && $notifyUser->getID() ) { EchoEvent::create( array(