aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-10-13 16:47:45 -0700
committerzotlabs <mike@macgirvin.com>2016-10-13 16:47:45 -0700
commitdaaefed61bc6a38a102ce2c357278158535a2b27 (patch)
treeb9ca8505dc567608e00015ad046bda244e499d73 /include/network.php
parent6532972e61a2aa5e8517ebcca3113adb3c8f336d (diff)
downloadvolse-hubzilla-daaefed61bc6a38a102ce2c357278158535a2b27.tar.gz
volse-hubzilla-daaefed61bc6a38a102ce2c357278158535a2b27.tar.bz2
volse-hubzilla-daaefed61bc6a38a102ce2c357278158535a2b27.zip
provide text log results of email success/failure rather than 1 and 0.
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/network.php b/include/network.php
index 97dca2b1a..53bb583fa 100644
--- a/include/network.php
+++ b/include/network.php
@@ -2266,7 +2266,7 @@ function z_mail($params) {
call_hooks('email_send', $params);
if($params['sent']) {
- logger('notification: z_mail returns ' . $params['result'], LOGGER_DEBUG);
+ logger('notification: z_mail returns ' . (($params['result']) ? 'success' : 'failure'), LOGGER_DEBUG);
return $params['result'];
}
@@ -2285,7 +2285,7 @@ function z_mail($params) {
$params['textVersion'],
$messageHeader // message headers
);
- logger('notification: z_mail returns ' . $res, LOGGER_DEBUG);
+ logger('notification: z_mail returns ' . (($res) ? 'success' : 'failure'), LOGGER_DEBUG);
return $res;
}