Displays no member in directory view for empty lists (Closes #1543).
authorStéphane Jacob <sj@m4x.org>
Sat, 1 Oct 2011 14:05:18 +0000 (16:05 +0200)
committerStéphane Jacob <sj@m4x.org>
Sat, 1 Oct 2011 14:05:18 +0000 (16:05 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
ChangeLog
classes/userfilter/conditions.inc.php

index 4c27ed0..bcf4cf4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -24,6 +24,9 @@ Bug/Wish:
         - #1529: Stores and uses preferences for sending emails from site  -JAC
         - #1516: Enables @polytechnique.edu adresses for old promotions    -GLN
 
+    * Lists:
+        - #1543: Displays no member in directory view for empty lists      -JAC
+
     * Newsletter:
         - #1509: Adds a Reply-To field for newsletters                     -GLN
         - #1526: Shows user filter used after sending                      -GLN
index a66ef5a..2604a37 100644 (file)
@@ -966,7 +966,7 @@ class UFC_Email extends UserFilterCondition
         $cond    = array();
 
         if (count($this->emails) == 0) {
-            return PlFilterCondition::COND_TRUE;
+            return PlFilterCondition::COND_FALSE;
         }
 
         foreach ($this->emails as $entry) {