admin/emails/broken: name the downloaded file "broken.csv"
[platal.git] / classes / visibility.php
index dba6578..ffd12e0 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2011 Polytechnique.org                              *
+ *  Copyright (C) 2003-2014 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.
@@ -159,5 +159,5 @@ class Visibility
     }
 }
 
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8:
 ?>