diff --git a/php/get.php b/php/get.php index 187395c..31db735 100644 --- a/php/get.php +++ b/php/get.php @@ -38,7 +38,7 @@ function main(): void { foreach (scandir($directory) as $file) { if ($file === ".") continue; if ($category === "" && $file === "..") continue; - if (substr($file, 0, 1) === ".") continue; + if (substr($file, 0, 1) === "." && $file !== "..") continue; $path = add_seperator_ab("/", $category, $file); $is_dir = is_dir(ROOT_DIR.IMG_DIR.$path);