Fixes visibility comparison.
authorStéphane Jacob <sj@m4x.org>
Mon, 19 Sep 2011 07:52:44 +0000 (09:52 +0200)
committerStéphane Jacob <sj@m4x.org>
Mon, 19 Sep 2011 07:52:51 +0000 (09:52 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
classes/visibility.php

index dba6578..34036af 100644 (file)
@@ -131,7 +131,7 @@ class Visibility
     {
         // self::$display_levels is order from least restrictive
         // to most restrictive.
-        return self::$display_levels[$a] >= self::$display_levels[$b];
+        return self::$display_levels[$level_a] >= self::$display_levels[$level_b];
     }
 
     /** Compare the visibility of two fields.