BUGFIX: Error when no tags set
This commit is contained in:
parent
a1d9e971e3
commit
23f9765b3a
1 changed files with 8 additions and 6 deletions
|
@ -93,12 +93,14 @@ class ArticleGenerator
|
||||||
echo "<span class='author'>$author</span>"; // print the author
|
echo "<span class='author'>$author</span>"; // print the author
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($tags as $tag) {
|
if (isset($tags)) {
|
||||||
$blogurl = filter_input(INPUT_GET, "blog");
|
foreach ($tags as $tag) {
|
||||||
if ($blogurl == "") { // on main blog. no ?blog=
|
$blogurl = filter_input(INPUT_GET, "blog");
|
||||||
echo "<a class='tag' href='./?tag=$tag'>$tag</a> ";
|
if ($blogurl == "") { // on main blog. no ?blog=
|
||||||
} else { // not on main blog
|
echo "<a class='tag' href='./?tag=$tag'>$tag</a> ";
|
||||||
echo "<a class='tag' href='./?blog=$blog&tag=$tag'>$tag</a> ";
|
} else { // not on main blog
|
||||||
|
echo "<a class='tag' href='./?blog=$blog&tag=$tag'>$tag</a> ";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue