diff --git a/mkht.php b/mkht.php
index 5705b15..7b94737 100755
--- a/mkht.php
+++ b/mkht.php
@@ -34,7 +34,7 @@ if (file_exists(SITE . '/config.ini'))
$config['title'] ??= '';
$config['css'] ??= 1;
$config['header'] ??= false;
-$config['author'] ??= '';
+$config['author'] ??= NULL;
$config['base-url'] ??= [];
$config['center-index'] ??= false;
$config['default-lang'] ??= NULL;
@@ -100,7 +100,7 @@ foreach ($config['base-url'] as $url)
?>
= date('c', $files_dates[array_key_last($files_dates)]) ?>
- = $config['author'] ?>
+ = $config['author'] ?? '' ?>
$last_mod) {
?>
-
';
+
if ($config['announce-feed'])
echo '' . LF;
@@ -273,7 +275,7 @@ foreach ($files_dates as $src_page => $last_mod) {
global $config;
global $path_parts;
- return ' href="' . $config['base-url'][0] . substr($path_parts['dirname'], strlen(SITE)) . '/' . $matches['relative_url'] . '"';
+ return ' href="' . ($config['base-url'][0] ?? '') . substr($path_parts['dirname'], strlen(SITE)) . '/' . $matches['relative_url'] . '"';
}, $atom_entry_content);
if (!in_array('draft', explode('.', $path_parts['basename']), true)) {