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

fix output when .htaccess exists for admins

parent 14c1b370
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment