add domainid to result-list of Emails.get(); fix typo in EmailAccounts.add(); enhance debugging in Database-class
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -372,17 +372,17 @@ class Database {
|
||||
@fwrite($errlog, "|TRACE\n".$error_trace."\n");
|
||||
@fclose($errlog);
|
||||
|
||||
if (empty($sql['debug'])) {
|
||||
$error_trace = '';
|
||||
} elseif (!is_null($stmt)) {
|
||||
$error_trace .= "<br><br>".$stmt->queryString;
|
||||
}
|
||||
|
||||
if ($showerror && $json_response) {
|
||||
throw new Exception($error_message, 500);
|
||||
throw new Exception($error_message.($sql['debug'] ? "\n\n".$error_trace : ''), 500);
|
||||
}
|
||||
|
||||
if ($showerror) {
|
||||
if (empty($sql['debug'])) {
|
||||
$error_trace = '';
|
||||
} elseif (!is_null($stmt)) {
|
||||
$error_trace .= "<br><br>".$stmt->queryString;
|
||||
}
|
||||
|
||||
// fallback
|
||||
$theme = 'Sparkle';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user