X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/1801380d62ab693e819f17706a9530679a1add1e..caa254384466d5f8477de38fcf7492a1ecd3f938:/foto/index.php diff --git a/foto/index.php b/foto/index.php index c2cc95c..1e973c7 100644 --- a/foto/index.php +++ b/foto/index.php @@ -12,6 +12,9 @@ if (!$User) { # cover image of current album $Page->image = "/$img"; } + if (!$Page->path) { + return glob("$rootdir/*", GLOB_ONLYDIR); #TODO: recurse + } return; }