summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.php b/index.php
index 058ce90..6e01dfd 100644
--- a/index.php
+++ b/index.php
@@ -66,7 +66,9 @@ if ($response->getStatusCode()->value == 20) {
echo "<a href=\"$line[link]\" style=\"display: block;\">$line[text]</a>";
}
else if ($line['type'] === 'text') {
- echo "<p>$line[text]</p>";
+ if (! empty($line['text'])) {
+ echo "<p>$line[text]</p>";
+ }
}
}
}