r88217 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88216‎ | r88217 | r88218 >
Date:07:21, 16 May 2011
Author:kaldari
Status:ok
Tags:
Comment:
make sure email message is defined before emailing
Modified paths:
  • /trunk/extensions/WikiLove/wikiLove.js (modified) (history)

Diff [purge]

Index: trunk/extensions/WikiLove/wikiLove.js
@@ -423,7 +423,7 @@
424424 dataType: 'json',
425425 type: 'POST',
426426 success: function( data ) {
427 - if ( notify && $.wikiLove.emailable ) {
 427+ if ( notify && $.wikiLove.emailable && typeof $.wikiLove.currentTypeOrSubtype.mail != 'undefined' ) {
428428 $.wikiLove.sendEmail(
429429 $.wikiLove.currentTypeOrSubtype.title,
430430 $.wikiLove.prepareMsg( $.wikiLove.currentTypeOrSubtype.mail )

Status & tagging log