empty check for wciform.style_rules
authorJagadedes <jagadees.pillai@zyxware.com>
Wed, 19 Nov 2014 12:13:26 +0000 (17:43 +0530)
committerJagadedes <jagadees.pillai@zyxware.com>
Wed, 19 Nov 2014 12:13:26 +0000 (17:43 +0530)
templates/CRM/Wci/Page/wciwidget.tpl

index 1754ebfecaba662bc3fc8daa0852645bda09c951..3351f93e7fe2d11feffd3db1dd0f8572c719401f 100644 (file)
       color:{/literal}{$wciform.color_newsletter_text}{literal};
     }
 </style>
-
+{/literal}
+{if $wciform.style_rules}
+{literal}
 <style>
 {/literal}
   {$wciform.style_rules}
 {literal}
 </style>
 {/literal}
+{/if} 
 
 {if (1 == $wciform.hide_border)}
 <div id="crm_wid_{$wciform.widgetId}" class="crm-wci-widget {$wciform.size_variant}">