Fixes payment transactions addition
[platal.git] / classes / visibility.php
index dba6578..2abf8f6 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2011 Polytechnique.org                              *
+ *  Copyright (C) 2003-2013 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -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.