diff --git a/res/php/ArticleGenerator.php b/res/php/ArticleGenerator.php index 28dc714..1fc5a96 100644 --- a/res/php/ArticleGenerator.php +++ b/res/php/ArticleGenerator.php @@ -93,12 +93,14 @@ class ArticleGenerator echo "$author"; // print the author } - foreach ($tags as $tag) { - $blogurl = filter_input(INPUT_GET, "blog"); - if ($blogurl == "") { // on main blog. no ?blog= - echo "$tag "; - } else { // not on main blog - echo "$tag "; + if (isset($tags)) { + foreach ($tags as $tag) { + $blogurl = filter_input(INPUT_GET, "blog"); + if ($blogurl == "") { // on main blog. no ?blog= + echo "$tag "; + } else { // not on main blog + echo "$tag "; + } } }