aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkj-sh6042024-08-08 20:05:05 -0400
committerkj-sh6042024-08-08 20:05:05 -0400
commit9e1261961c9f1fb2cd7ab93e668126f340829856 (patch)
tree9c4014214c52260724600e14275b13cbbca9416c
parent4540191fbde56ad0b788ad0da42683d9275eb028 (diff)
refactor: use `else {}`
-rw-r--r--index.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/index.php b/index.php
index 2e95f24..5d1acd1 100644
--- a/index.php
+++ b/index.php
@@ -76,9 +76,7 @@ session_start(); ?>
</form>
</div>
<br>
- <?php
- } ?>
- <?php if (!isset($_POST["compile"])) { ?>
+ <?php } else { ?>
<div>
<label for="user-input">
<h2 class="centered">markdown goes here:</h2>