From d0e899b7d04bf528cbf2073fff146071e738858a Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Mon, 6 Jan 2014 12:00:48 +0100 Subject: [PATCH] [FIX] Empty / no template detection --- public/templates/mpos/master.tpl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/public/templates/mpos/master.tpl b/public/templates/mpos/master.tpl index 1e9c4409..2df06f75 100644 --- a/public/templates/mpos/master.tpl +++ b/public/templates/mpos/master.tpl @@ -51,7 +51,13 @@

{$smarty.session.POPUP[popup].CONTENT}

{/section} {/if} - {if $CONTENT != "empty" or $CONTENT != ""}{if file_exists($smarty.current_dir|cat:"/$PAGE/$ACTION/$CONTENT")}{include file="$PAGE/$ACTION/$CONTENT"}{else}Missing template for this page{/if}{/if} + {if $CONTENT != "empty" && $CONTENT != ""} + {if file_exists($smarty.current_dir|cat:"/$PAGE/$ACTION/$CONTENT")} + {include file="$PAGE/$ACTION/$CONTENT"} + {else} + Missing template for this page + {/if} + {/if}