login/pass: error messages below page title
[minimedit.git] / widget / login / list.php
index 94440dc88be215279cc72cee30c2db315380c3c8..92f265bb46242d6558db795dfa08ddefd94a1d8f 100644 (file)
@@ -1,7 +1,9 @@
 <?php
 $basepath = 'profile';
-if ($Page->path) $basepath .= '/.tags' . $Page->path;
-$users = glob("$basepath/*/");
+if (isset($Page->place[0])) {
+       $basepath .= '/.tags/' . $Page->place[0];
+}
+$users = glob("$basepath/*", GLOB_ONLYDIR);
 if (!$users) return;
 
 foreach ($users as $col => $userdir) {