fix isset checks

This commit is contained in:
Matthew Saunders Brown 2022-08-31 14:19:30 -07:00
parent 205e315230
commit a46cc02930
13 changed files with 17 additions and 20 deletions

View File

@ -24,7 +24,7 @@
<a href="{{@BASE}}/Logout">Logout</a> <a href="{{@BASE}}/Logout">Logout</a>
</check> </check>
<check if="{{ @NAV.subnav }}"> <check if="isset(@NAV.subnav)">
<true> <true>
<p style="padding-top: 5px"> <p style="padding-top: 5px">
>> >>
@ -50,15 +50,15 @@
</false> </false>
</check> </check>
</nav> </nav>
<check if="{{ @page_header }}"> <check if="isset(@page_header)">
<h1>{{@page_header}}</h1> <h1>{{@page_header}}</h1>
</check> </check>
</header> </header>
<main> <main>
<check if="{{ @ERROR.text }}"> <check if="isset(@ERROR.text)">
<h3>{{@ERROR.text}}</h3> <h3>{{@ERROR.text}}</h3>
</check> </check>
<check if="{{ @SESSION.messages }}"> <check if="isset(@SESSION.messages)">
<p> <p>
<section style="color:red"> <section style="color:red">
<repeat group="{{ @SESSION.messages }}" value="{{ @panel_message }}"> <repeat group="{{ @SESSION.messages }}" value="{{ @panel_message }}">

View File

@ -1,6 +1,6 @@
<include href="header.html" /> <include href="header.html" />
<check if="{{ @confirm }}"> <check if="isset(@confirm)">
<true> <true>
<form action="{{@REALM}}" method="POST"> <form action="{{@REALM}}" method="POST">
<fieldset> <fieldset>

View File

@ -1,6 +1,6 @@
<include href="header.html" /> <include href="header.html" />
<check if="{{ @aliases_array }}"> <check if="isset(@aliases_array)">
<true> <true>
<table> <table>
@ -29,7 +29,7 @@
<b>Email Account</b> is the existing email account that the alias address is delivered to.<br> <b>Email Account</b> is the existing email account that the alias address is delivered to.<br>
</p> </p>
<p> <p>
<check if="{{ @PARAMS.mbox }}"> <check if="isset(@PARAMS.mbox)">
<true> <true>
<a href="{{@REALM}}/Add">Add new email alias form</a> <a href="{{@REALM}}/Add">Add new email alias form</a>
</true> </true>

View File

@ -1,7 +1,7 @@
<include href="header.html" /> <include href="header.html" />
<check if="{{ @autoresponders_array }}"> <check if="isset(@autoresponders_array)">
<table> <table>
<!-- <tr> <!-- <tr>
<th colspan="2">Autoresponder for {{ @mbox }}@{{ @domain }} </th> <th colspan="2">Autoresponder for {{ @mbox }}@{{ @domain }} </th>

View File

@ -1,6 +1,6 @@
<include href="header.html" /> <include href="header.html" />
<check if="{{ @confirm }}"> <check if="isset(@confirm)">
<true> <true>
<form action="{{@REALM}}" method="POST"> <form action="{{@REALM}}" method="POST">
<fieldset> <fieldset>

View File

@ -1,6 +1,6 @@
<include href="header.html" /> <include href="header.html" />
<check if="{{ @autoresponders_array }}"> <check if="isset(@autoresponders_array)">
<true> <true>
<table> <table>
<tr> <tr>

View File

@ -1,8 +1,6 @@
<include href="header.html" /> <include href="header.html" />
<check if="{{ @confirm }}"> <check if="isset(@confirm)">
<form action="{{@NAV.fullpath}}" method="POST"> <form action="{{@NAV.fullpath}}" method="POST">
<fieldset> <fieldset>

View File

@ -1,6 +1,6 @@
<include href="header.html" /> <include href="header.html" />
<check if="{{ @domains_array }}"> <check if="isset(@domains_array)">
<true> <true>
<table> <table>
<tr> <tr>

View File

@ -1,6 +1,6 @@
<include href="header.html" /> <include href="header.html" />
<check if="{{ @confirm }}"> <check if="isset(@confirm)">
<true> <true>
<form action="{{@REALM}}" method="POST"> <form action="{{@REALM}}" method="POST">
<fieldset> <fieldset>

View File

@ -1,7 +1,6 @@
<include href="header.html" /> <include href="header.html" />
<check if="isset(@forward_array)">
<check if="{{ @forward_array }}">
<table> <table>
<tr> <tr>
<th>Email Account</th> <th>Email Account</th>

View File

@ -1,6 +1,6 @@
<include href="header.html" /> <include href="header.html" />
<check if="{{ @forwards_array }}"> <check if="isset(@forwards_array)">
<true> <true>
<table> <table>
<tr> <tr>

View File

@ -1,6 +1,6 @@
<include href="header.html" /> <include href="header.html" />
<check if="{{ @confirm }}"> <check if="isset(@confirm)">
<true> <true>
<form action="{{@REALM}}" method="POST"> <form action="{{@REALM}}" method="POST">
<fieldset> <fieldset>

View File

@ -1,6 +1,6 @@
<include href="header.html" /> <include href="header.html" />
<check if="{{ @mboxes_array }}"> <check if="isset(@mboxes_array)">
<true> <true>
<table> <table>
<tr> <tr>