More trying to fix the horrid logic statement
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
parent
a2e62925af
commit
40ac0375b8
|
@ -45,7 +45,7 @@
|
|||
if (file_get_contents($filename) == $_GET['code']) {
|
||||
if ($_GET['action'] == "sub") {
|
||||
$handle = fopen("/var/spool/list", "a");
|
||||
fwrite($handle, $code . "\n");
|
||||
fwrite($handle, $code . PHP_EOL);
|
||||
fclose($handle);
|
||||
} else {
|
||||
$contents = file_get_contents("/var/spool/list");
|
||||
|
@ -80,7 +80,7 @@
|
|||
mail($email, $subject, $message, $headers);
|
||||
}
|
||||
|
||||
if (empty($_GET['action']) || ($_GET['action'] != "sub" && $_GET['action'] != "unsub") || !empty($err) && empty($_GET['code']) && empty($code_err)) {
|
||||
if (empty($_GET['action']) || ($_GET['action'] != "sub" && $_GET['action'] != "unsub") || !empty($err) && (empty($_GET['code']) || empty($code_err))) {
|
||||
|
||||
?>
|
||||
<div class=h><h1 id=list>Mailing List</h1> <a aria-hidden=true href=#list>#list</a></div>
|
||||
|
|
Loading…
Reference in New Issue