diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2012-05-03 13:01:35 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2012-05-03 13:01:35 +0200 |
commit | d9022f63880ce039446fba8364f68e656b7bf4cb (patch) | |
tree | 16b40fbf17bf7c9ee6f4ead25b16dd192378050a /includes/job/EnotifNotifyJob.php | |
parent | 27cf83d177256813e2e802241085fce5dd0f3fb9 (diff) |
Update to MediaWiki 1.19.0
Diffstat (limited to 'includes/job/EnotifNotifyJob.php')
-rw-r--r-- | includes/job/EnotifNotifyJob.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/job/EnotifNotifyJob.php b/includes/job/EnotifNotifyJob.php index 5d2a08ea..eb154ece 100644 --- a/includes/job/EnotifNotifyJob.php +++ b/includes/job/EnotifNotifyJob.php @@ -20,10 +20,11 @@ class EnotifNotifyJob extends Job { function run() { $enotif = new EmailNotification(); // Get the user from ID (rename safe). Anons are 0, so defer to name. - if( isset($this->params['editorID']) && $this->params['editorID'] ) { + if( isset( $this->params['editorID'] ) && $this->params['editorID'] ) { $editor = User::newFromId( $this->params['editorID'] ); // B/C, only the name might be given. } else { + # FIXME: newFromName could return false on a badly configured wiki. $editor = User::newFromName( $this->params['editor'], false ); } $enotif->actuallyNotifyOnPageChange( |