Browse Source

better fix for the Profile.template.php if no Post exits.

Signed-off-by: PortaMx (Feline) <[email protected]>
PortaMx (Feline) 11 years ago
parent
commit
706cf43415
1 changed files with 4 additions and 3 deletions
  1. 4 3
      Themes/default/Profile.template.php

+ 4 - 3
Themes/default/Profile.template.php

@@ -416,9 +416,10 @@ function template_showPosts()
 	// No posts? Just end with a informative message.
 	if ((isset($context['attachments']) && empty($context['attachments'])) || (!isset($context['attachments']) && empty($context['posts'])))
 		echo '
-			<div class="', $post['alternate'] == 0 ? 'windowbg2' : 'windowbg', ' core_posts">
-				<div class="content">
-					', isset($context['attachments']) ? $txt['show_attachments_none'] : ($context['is_topics'] ? $txt['show_topics_none'] : $txt['show_posts_none']), '
+				<div class="windowbg2 core_posts">
+					<div class="content">
+						', isset($context['attachments']) ? $txt['show_attachments_none'] : ($context['is_topics'] ? $txt['show_topics_none'] : $txt['show_posts_none']), '
+					</div>
 				</div>
 			</div>';