diff --git a/includes/users.php b/includes/users.php
index 9d072ec..0d46320 100644
--- a/includes/users.php
+++ b/includes/users.php
@@ -1,17 +1,23 @@
";
print "
";
-foreach (glob("/home/*") as $userpath):
- if (is_dir("$userpath/public_html"))
- {
- $user = basename($userpath);
- if(sha1_file($html_skel) == sha1_file("$userpath/public_html/index.html") || count(scandir("$userpath/public_html")) == 2)
- print"- ~$user
\n";
- else
- print"- ~$user
\n";
+
+foreach (glob("/home/*") as $userpath) {
+ if (is_dir("$userpath/public_html")) {
+ $user = basename($userpath);
+
+ $skeletonMatch = (@sha1_file($html_skel) === @sha1_file("$userpath/public_html/index.html"));
+ $isEmptyPubhtml = (@count(@scandir("$userpath/public_html")) === 2); // 2 => "." and ".."
+
+ if ($skeletonMatch || $isEmptyPubhtml) {
+ print "- ~$user
\n";
+ } else {
+ print "- ~$user
\n";
+ }
}
-endforeach;
-print "
-";
+}
+
+print "\n";
?>