Commit 0c25b567 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev
Browse files

fix output when .htaccess exists for admins

parent 14c1b370
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -123,11 +123,7 @@ function get_allowed_rating($r){

  global $SECRET_PATTERN;

  if (!is_file(".htaccess")) {

    $r = $r;

  }else{
  if (is_file(".htaccess")) {

    $htaccess = file_get_contents(".htaccess");

@@ -135,7 +131,7 @@ function get_allowed_rating($r){

    // restrict to 1
    if ($m) {
      $r = 1;
      $r = max(1,$r);
    }

  }