diff options
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( |