Only adds sidebarOrientation if sidebar exists
authorMatthias Schmidt <gravatronics@live.com>
Thu, 2 Aug 2012 12:36:07 +0000 (14:36 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 2 Aug 2012 12:36:07 +0000 (14:36 +0200)
com.woltlab.wcf/template/header.tpl

index 9c8feace85bfbcca822ba63dd1ebb7d3c962ef2a..6d121e421986a9d46bafd0f0350697299bdc6e93 100644 (file)
@@ -51,7 +51,7 @@
 <!-- /HEADER -->
 
 <!-- MAIN -->
-<div id="main" class="layoutFluid{if $sidebarOrientation|isset} sidebarOrientation{@$sidebarOrientation|ucfirst} clearfix{/if}">
+<div id="main" class="layoutFluid{if $sidebarOrientation|isset && $sidebar|isset} sidebarOrientation{@$sidebarOrientation|ucfirst} clearfix{/if}">
        <div>
                {if $sidebar|isset}
                        <aside class="sidebar">