Commit dd9578de098792ccdb6d897e6a2f896bb2bc15ba
Exists in
mysqli
and in
1 other branch
Merge branch 'v1.1.1' into 'master'
Verificação de campos obrigatórios corrigida Essa alteração corrige a verificação de campos obrigatórios, que acabava considerando o uso do PHPMailer e de autenticação SMTP sempre selecionados. See merge request !12
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
instalar/index.php
... | ... | @@ -26,9 +26,9 @@ if ( (is_writable("../inc/config.php") and is_writable("../restrito/inc/config.p |
26 | 26 | $dbuser = $_POST["dbuser"]; |
27 | 27 | $dbpass = $_POST["dbpass"]; |
28 | 28 | $dbname = $_POST["dbname"]; |
29 | - $phpmailer = $_POST["phpmailer"] == "phpmailer" ? "true" : "false"; | |
29 | + $phpmailer = $_POST["phpmailer"] == "phpmailer" ? true : false; | |
30 | 30 | $smtphost = $_POST["smtpport"] != "" ? $_POST["smtphost"].":".$_POST["smtpport"] : $_POST["smtphost"]; |
31 | - $smtpauth = $_POST["smtpauth"] == "smtpauth" ? "true" : "false"; | |
31 | + $smtpauth = $_POST["smtpauth"] == "smtpauth" ? true : false; | |
32 | 32 | $smtpuser = $_POST["smtpuser"]; |
33 | 33 | $smtppwd = $_POST["smtppwd"]; |
34 | 34 | |
... | ... | @@ -204,4 +204,4 @@ include("../inc/topo.php"); |
204 | 204 | <?php |
205 | 205 | } |
206 | 206 | include("../inc/rodape.php"); |
207 | -?> | |
208 | 207 | \ No newline at end of file |
208 | +?> | ... | ... |