From 4c19b5315283b788c32c428b8b0e185db10ed7a3 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sun, 9 Jul 2023 17:19:02 +0200 Subject: Updated 3 files (automated) --- pages/byspecies.inc | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'pages') diff --git a/pages/byspecies.inc b/pages/byspecies.inc index 7a032db..294dee7 100644 --- a/pages/byspecies.inc +++ b/pages/byspecies.inc @@ -29,6 +29,8 @@ function page() { global $lang; $crystal = []; $changeling = []; $merpony = []; + $human = []; + $kirin = []; foreach ($members as $member) { foreach ($member["_metadata"]["species"] as $species) { @@ -41,18 +43,20 @@ function page() { global $lang; if ($species === "changeling") $changeling[] = $member; if ($species === "human") $human[] = $member; if ($species === "merpony") $merpony[] = $member; + if ($species === "kirin") $kirin[] = $member; } } - species($earth, "earth", $lang["species"]["earth"][3]); - species($pegasus, "pegasus", $lang["species"]["pegasus"][3]); - species($unicorn, "unicorn", $lang["species"]["unicorn"][3]); - species($alicorn, "alicorn", $lang["species"]["alicorn"][3]); - species($batpony, "batpony", $lang["species"]["batpony"][3]); - species($crystal, "crystal", $lang["species"]["crystal"][3]); - species($changeling, "changeling", "Changelings"); - species($human, "human", "Humans"); - species($merpony, "merpony", "Merponies"); + if (count($earth) > 0) species($earth, "earth", $lang["species"]["earth"][3]); + if (count($pegasus) > 0) species($pegasus, "pegasus", $lang["species"]["pegasus"][3]); + if (count($unicorn) > 0) species($unicorn, "unicorn", $lang["species"]["unicorn"][3]); + if (count($alicorn) > 0) species($alicorn, "alicorn", $lang["species"]["alicorn"][3]); + if (count($batpony) > 0) species($batpony, "batpony", $lang["species"]["batpony"][3]); + if (count($crystal) > 0) species($crystal, "crystal", $lang["species"]["crystal"][3]); + if (count($kirin) > 0) species($kirin, "kirin", "Kirin"); + if (count($changeling) > 0) species($changeling, "changeling", "Changelings"); + if (count($merpony) > 0) species($merpony, "merpony", "Merponies"); + if (count($human) > 0) species($human, "human", "Humans"); } ?> -- cgit