No need for if condition now

You can only see multiple results if logged in, so no need for this if
condition
This commit is contained in:
Matt Pass
2012-09-19 08:40:37 +01:00
parent 15b4793d32
commit 924919fb6f

View File

@@ -103,10 +103,8 @@ if (startTab!=top.ICEcoder.selectedTab) {
} else if(stristr(file_get_contents($fullPath), $q)) {
$rFile = false;
$bFile = false;
if (!$_SESSION['loggedIn']) {
for ($i=0;$i<count($ICEcoder["restrictedFiles"]);$i++) {
if (strpos($f,$ICEcoder['restrictedFiles'][$i])>0) {$rFile = true;};
}
for ($i=0;$i<count($ICEcoder["restrictedFiles"]);$i++) {
if (strpos($f,$ICEcoder['restrictedFiles'][$i])>0) {$rFile = true;};
}
for ($i=0;$i<count($ICEcoder['bannedFiles']);$i++) {
if (strpos($f,$ICEcoder['bannedFiles'][$i])>0) {$bFile = true;};