diff --git a/index.php b/index.php
index 28e3a8a..f7e5255 100644
--- a/index.php
+++ b/index.php
@@ -33,7 +33,9 @@ if (array_key_exists("submitted", $_REQUEST)) {
$content .= "
\n";
}
- fwrite($sentences, $content);
+ if (!empty($word)) {
+ fwrite($sentences, $content);
+ }
fclose($sentences);
header("location: ".htmlentities($_SERVER['PHP_SELF']));
}
@@ -46,7 +48,8 @@ $config_data = json_decode($raw_json_config, false);
-