diff --git a/lib/upload.php b/lib/upload.php index efb4344..9df867b 100644 --- a/lib/upload.php +++ b/lib/upload.php @@ -143,7 +143,7 @@ function doImageUpload(string $inFile, string $outFile): bool function listFiles(bool $onlyMine = true): array { - $output = ["Status" => "Success"]; + $output = ["Status" => "Success", "Files" => []]; require_once "lib/account.php"; if (isLoggedIn()) { global $mysqli;