Merge branch 'xorg/maint'
authorNicolas Iooss <nicolas.iooss_git@polytechnique.org>
Wed, 5 Mar 2014 19:23:23 +0000 (20:23 +0100)
committerNicolas Iooss <nicolas.iooss_git@polytechnique.org>
Wed, 5 Mar 2014 19:23:23 +0000 (20:23 +0100)
Conflicts:
include/newsletter.inc.php

1  2 
include/newsletter.inc.php

@@@ -1231,12 -1245,7 +1251,14 @@@ class NLIssu
       */
      public function sendTo($user, $hash = null)
      {
+         global $globals;
++
 +        // Don't send email to users without an address
 +        // Note: this would never happen when using sendToAll
 +        if (!$user->bestEmail()) {
 +            return;
 +        }
 +
          $this->fetchArticles();
  
          if (is_null($hash)) {