Commit 4ab083ca authored by Carsten  Rose's avatar Carsten Rose
Browse files

AbstractException.php: small recode

SendMail.php: in error message show commandline.
test.html: remove
parent 63ee3e26
......@@ -89,12 +89,14 @@ class AbstractException extends \Exception {
// Layout
$debug = '<tr bgcolor="#dddddd"><td colspan="2">Exception</td></tr>';
foreach ($this->messageArray as $key => $value) {
// Array to string
if (is_array($value)) {
$value = var_export($value, true);
}
if ($value !== '' && $value !== false)
if (!empty($value)) {
$debug .= "<tr>" . "<td>$key</td>" . "<td>" . htmlspecialchars($value) . "</td>" . "</tr>";
}
}
$debug = "<table border=1>" . $debug . "</table>";
}
......
......@@ -169,7 +169,7 @@ class SendMail {
}
if ($rc != 0) {
$output = $rc . " - " . implode('<br>', $arr);
$output = $rc . " - " . implode('<br>', $arr) . " - " . $cmd;
throw new UserFormException("Error sendmail failed: " . $output, ERROR_SENDMAIL);
}
}
......
<div class="col-md-6 col-sm-9">
<!-- CONTENT ELEMENT, uid:4/html [begin] -->
<div id="c4">
<!-- Raw HTML content: [begin] -->
<a href="?u10" class="button-big blue play">U10</a>
<a href="?u12" class="button-big blue crayon">U12</a>
<a href="?u14" class="button-big blue library">U14</a>
<a href="?fs" class="button-big blue promo font-big">Frühstudium</a>
<a href="?u18" class="button-big blue blackboard">U18</a>
<a href="?olympics" class="button-big blue track font-big">Olympics</a>
<!-- Raw HTML content: [end] -->
</div>
<!-- CONTENT ELEMENT, uid:4/html [end] -->
</div>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment