Browse Source

exit() after using access-file

Tobias Reich 8 years ago
parent
commit
412fbf47ee
1 changed files with 8 additions and 8 deletions
  1. 8 8
      php/api.php

+ 8 - 8
php/api.php

@@ -55,17 +55,17 @@ if (!empty($fn)) {
 		$admin = new Admin();
 		$admin->check($fn);
 
-	} else {
+		exit();
 
-		###
-		# Guest Access
-		# Access to view all public folders and photos in Lychee.
-		###
+	}
 
-		$guest = new Guest();
-		$guest->check($fn);
+	###
+	# Guest Access
+	# Access to view all public folders and photos in Lychee.
+	###
 
-	}
+	$guest = new Guest();
+	$guest->check($fn);
 
 } else {