summaryrefslogtreecommitdiff
path: root/includes/components/pleasure.inc
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-06-03 14:10:08 +0200
committerRaindropsSys <contact@minteck.org>2023-06-03 14:10:08 +0200
commitcc2a438199b02c78e5b2e2b71de8e56f6617eae9 (patch)
tree7ddbeba11a3c16ada13663e7b3bba9bef0f96ca6 /includes/components/pleasure.inc
parent48afc99d05c7bcd54231f340635f5102a03fbda4 (diff)
downloadpluralconnect-cc2a438199b02c78e5b2e2b71de8e56f6617eae9.tar.gz
pluralconnect-cc2a438199b02c78e5b2e2b71de8e56f6617eae9.tar.bz2
pluralconnect-cc2a438199b02c78e5b2e2b71de8e56f6617eae9.zip
Updated 15 files (automated)
Diffstat (limited to 'includes/components/pleasure.inc')
-rw-r--r--includes/components/pleasure.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/components/pleasure.inc b/includes/components/pleasure.inc
index 40bf7fd..0939228 100644
--- a/includes/components/pleasure.inc
+++ b/includes/components/pleasure.inc
@@ -28,7 +28,7 @@
?> However, if you wish, any of the ponies mentioned on this page can take control of the body for the amount of time required for sex.
</div>
- <?php elseif (!parseMetadata(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/metadata/" . $front[0]["id"]), true))["other"]): ?>
+ <?php elseif (!parseMetadata(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/metadata/" . $front[0]["id"] . ".json"), true))["other"]): ?>
<div class="alert alert-warning">
<?php
@@ -217,28 +217,28 @@ if (!isset($school[$day])) {
<p><?= $_PROFILE["login"] === "raindrops" ? "These ponies will have sex with " . $app["other"]["name"] : "These ponies will have sex with you" ?>:</p>
<ul>
- <?php foreach (scoreOrderGlobal() as $pony): if ($pony["system"] === "gdapd" && $pony["_metadata"]["other"]): ?>
+ <?php foreach (scoreOrderGlobal() as $pony): if ($pony["system"] === "gdapd" && isset($pony["_metadata"]["other"]) && $pony["_metadata"]["other"]): ?>
<li><a href="/<?= $pony["name"] ?>"><?= $pony["display_name"] ?? $pony["name"] ?></a> (<?= $pony["_metadata"]["sexually_active"] ? "no consent is required" : "consent is mandatory" ?>)</li>
<?php endif; endforeach; ?>
</ul>
<p><?= $_PROFILE["login"] === "raindrops" ? "These ponies may have sex with " . $app["other"]["name"] . " but are unsure about it" : "These ponies may have sex with you but are unsure about it" ?>:</p>
<ul>
- <?php foreach (scoreOrderGlobal() as $pony): if ($pony["system"] === "gdapd" && $pony["_metadata"]["other2"]): ?>
+ <?php foreach (scoreOrderGlobal() as $pony): if ($pony["system"] === "gdapd" && isset($pony["_metadata"]["other2"]) && $pony["_metadata"]["other2"]): ?>
<li><a href="/<?= $pony["name"] ?>"><?= $pony["display_name"] ?? $pony["name"] ?></a></li>
<?php endif; endforeach; ?>
</ul>
<p><?= $_PROFILE["login"] === "raindrops" ? "These ponies will have sex with you" : "These ponies will have sex with Raindrops" ?>:</p>
<ul>
- <?php foreach (scoreOrderGlobal() as $pony): if ($pony["system"] === $app["other"]["id"] && $pony["_metadata"]["other3"]): ?>
+ <?php foreach (scoreOrderGlobal() as $pony): if ($pony["system"] === $app["other"]["id"] && isset($pony["_metadata"]["other3"]) && $pony["_metadata"]["other3"]): ?>
<li><a href="/<?= $pony["name"] ?>"><?= $pony["display_name"] ?? $pony["name"] ?></a></li>
<?php endif; endforeach; ?>
</ul>
<p><?= $_PROFILE["login"] === "raindrops" ? "These ponies may have sex with you but are unsure about it" : "These ponies may have sex with Raindrops but are unsure about it" ?>:</p>
<ul>
- <?php foreach (scoreOrderGlobal() as $pony): if ($pony["system"] === $app["other"]["id"] && $pony["_metadata"]["other4"]): ?>
+ <?php foreach (scoreOrderGlobal() as $pony): if ($pony["system"] === $app["other"]["id"] && isset($pony["_metadata"]["other4"]) && $pony["_metadata"]["other4"]): ?>
<li><a href="/<?= $pony["name"] ?>"><?= $pony["display_name"] ?? $pony["name"] ?></a></li>
<?php endif; endforeach; ?>
</ul>