Bugfix: empty tag appearing when I didn't enter any tags

This commit is contained in:
Starbeamrainbowlabs 2015-11-01 10:17:14 +00:00
parent e79e522d78
commit 2dff5fe655
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ register_module([
}
$content = "<h1>$title</h1>";
$page_tags = implode(", ", (!empty($pageindex->{$env->page}->tags)) ? $pageindex->{$env->page}->tags : [ "" ]);
$page_tags = implode(", ", (!empty($pageindex->{$env->page}->tags)) ? $pageindex->{$env->page}->tags : []);
if(!$env->is_logged_in and $settings->anonedits)
{
$content .= "<p><strong>Warning: You are not logged in! Your IP address <em>may</em> be recorded.</strong></p>";