{if $docfromrubcheck != load} {assign var=docfromrubcheck value='' scope="global"} {literal} {/literal} {assign var=docfromrubcheck value="load" scope="global"} {/if} {if $fields && !isset($error)}