From 1e35479599a2d5bfd8a62a9ae087f10aace70a62 Mon Sep 17 00:00:00 2001
From: lowercase-donkey <lowercasedonkey@gmail.com>
Date: Sat, 23 Mar 2019 02:11:22 -0400
Subject: [PATCH] fix edge case error

---
 src/uncategorized/main.tw | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/uncategorized/main.tw b/src/uncategorized/main.tw
index 3d04e328bad..26f8d93f74e 100644
--- a/src/uncategorized/main.tw
+++ b/src/uncategorized/main.tw
@@ -474,23 +474,23 @@ __''MAIN MENU''__&nbsp;&nbsp;&nbsp;&nbsp;//[[Summary Options]]//
 		<script>document.getElementById("tab overview").click();</script>
 	<<elseif ($tabChoice.Main == "resting")>>
 		<script>document.getElementById("tab resting").click();</script>
-	<<elseif ($tabChoice.Main == "stay confined")>>
+	<<elseif ($tabChoice.Main == "stay confined" && $JobIDArray['stay confined'].length)>>
 		<script>document.getElementById("tab stay confined").click();</script>
-	<<elseif ($tabChoice.Main == "take classes")>>
+	<<elseif ($tabChoice.Main == "take classes") && $JobIDArray['take classes'].length>>
 		<script>document.getElementById("tab take classes").click();</script>
-	<<elseif ($tabChoice.Main == "please you")>>
+	<<elseif ($tabChoice.Main == "please you") && $JobIDArray['please you'].length>>
 		<script>document.getElementById("tab please you").click();</script>
-	<<elseif ($tabChoice.Main == "whore")>>
+	<<elseif ($tabChoice.Main == "whore" && $JobIDArray['whore'].length)>>
 		<script>document.getElementById("tab whore").click();</script>
-	<<elseif ($tabChoice.Main == "serve the public")>>
+	<<elseif ($tabChoice.Main == "serve the public") && $JobIDArray['serve the public'].length>>
 		<script>document.getElementById("tab serve the public").click();</script>
-	<<elseif ($tabChoice.Main == "be a servant")>>
+	<<elseif ($tabChoice.Main == "be a servant") && $JobIDArray['be a servant'].length>>
 		<script>document.getElementById("tab be a servant").click();</script>
-	<<elseif ($tabChoice.Main == "get milked")>>
+	<<elseif ($tabChoice.Main == "get milked") && $JobIDArray['get milked'].length>>
 		<script>document.getElementById("tab get milked").click();</script>
-	<<elseif ($tabChoice.Main == "work a glory hole")>>
+	<<elseif ($tabChoice.Main == "work a glory hole") && $JobIDArray['work a glory hole'].length>>
 		<script>document.getElementById("tab work a glory hole").click();</script>
-	<<elseif ($tabChoice.Main == "be a subordinate slave")>>
+	<<elseif ($tabChoice.Main == "be a subordinate slave") && $JobIDArray['be a subordinate slave'].length>>
 		<script>document.getElementById("tab be a subordinate slave").click();</script>
 	<<elseif ($tabChoice.Main == "all")>>
 		<script>document.getElementById("tab all").click();</script>
-- 
GitLab