diff --git a/php/api.php b/php/api.php index 76e4ee1..5f50dd9 100755 --- a/php/api.php +++ b/php/api.php @@ -55,18 +55,18 @@ if (!empty($fn)) { $admin = new Admin(); $admin->check($fn); - } else { - - ### - # Guest Access - # Access to view all public folders and photos in Lychee. - ### - - $guest = new Guest(); - $guest->check($fn); + exit(); } + ### + # Guest Access + # Access to view all public folders and photos in Lychee. + ### + + $guest = new Guest(); + $guest->check($fn); + } else { exit('Error: No API function specified!');