ソースを参照

Made “rl” var check more terse

pezcurrel 1 ヶ月 前
コミット
7f4a624e85
1 ファイル変更2 行追加1 行削除
  1. 2 1
      index.php

+ 2 - 1
index.php

@@ -196,7 +196,7 @@ if ($errors=='' && $_GET['acctock']!='' && $_GET['host']!='') {
 		$out.=" suspended by «{$hhost}».<br>\n<br>\n{$acchostck}</div>\n";
 		echo $out;
 	}
-	if (is_array($rl) && isset($rl['ok']) && $rl['ok'] && @file_put_contents($rlfp,$rl['remaining']."\n".($rl['sleep']+time())."\n")===false)
+	if (isset($rl['ok']) && $rl['ok'] && @file_put_contents($rlfp,$rl['remaining']."\n".($rl['sleep']+time())."\n")===false)
 		echo "<div class=\"warning\">Warning: could not write to rate limit state file.</div>\n";
 }
 
@@ -208,6 +208,7 @@ echo "<div id=\"footer\"><a href=\"".SREPO."\">{$usname} ".SVERS."</a></div>
 </body>
 </html>\n";
 
+
 function preprint($var) {
 	return '<pre>'.print_r($var,true)."</pre>\n";
 }